Want to navigate to a web page from within a flutter app? You can trigger a navigation using the activity service:
Example:
1 2 3 4 5 6 7 8 | import 'package:flutter/services.dart'; void launchUrl(String url) { Intent intent = new Intent() ..action = 'android.intent.action.VIEW' ..url = url; activity.startActivity(intent); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.