How can I open a website in an app made with Flutter and Dart?

51 views
Skip to first unread message

Di di

unread,
Oct 10, 2020, 7:53:34 AM10/10/20
to Flutter Development (flutter-dev)

I would like to develop following app:

the first screen shows buttons. When the user clicks on a button, a website opens within the app.

I have found the possibility that a web browser opens when the user clicks on a button. But the web browser doesn't open in the app, instead he opens outside the app.

Could You help me please?

BEST REGARDS!

Andy Greenshaw

unread,
Oct 10, 2020, 7:56:46 AM10/10/20
to Di di, Flutter Development (flutter-dev)
Are you using launch_url? There are flags (different for iOS and Android) to open in browser, not in the app.


From: flutt...@googlegroups.com <flutt...@googlegroups.com> on behalf of Di di <weisenb...@gmail.com>
Sent: Saturday, October 10, 2020 12:53:34 PM
To: Flutter Development (flutter-dev) <flutt...@googlegroups.com>
Subject: How can I open a website in an app made with Flutter and Dart?
 
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/49132aed-8b85-422e-9576-d7a432076051n%40googlegroups.com.

Di di

unread,
Oct 10, 2020, 9:49:52 AM10/10/20
to Flutter Development (flutter-dev)
Thank You for the response. 
My desire is to open the browser directly in the app, so in the app browser. 
Could You give me any advice, please?

Andy Greenshaw

unread,
Oct 10, 2020, 11:15:10 AM10/10/20
to Flutter Development (flutter-dev), Di di
Read the README for the package and look at the example code.

Souvik Dutta Chowdhury

unread,
Oct 10, 2020, 9:36:11 PM10/10/20
to Andy Greenshaw, Flutter Development (flutter-dev), Di di

Souvik Dutta Chowdhury

unread,
Oct 10, 2020, 9:36:38 PM10/10/20
to Di di, Flutter Development (flutter-dev)
Webview package might help.

ABADA SAMUEL

unread,
Oct 11, 2020, 4:05:23 AM10/11/20
to Di di, Flutter Development (flutter-dev)
You could use the url_launcher package and force webview or you use the webview package on pub.dev.

--
Reply all
Reply to author
Forward
0 new messages