URL_ LAUNCHER opens URL on a web browser
But I want to show URL inside my app INSTEAD OF any browser
How can I achieve this ?
Whenever user click on a button url should launch inside my app instead of any default web browser or any type of browser
URL_ LAUNCHER opens URL on a web browser
But I want to show URL inside my app INSTEAD OF any browser
How can I achieve this ?
Whenever user click on a button url should launch inside my app instead of any default web browser or any type of browser
You can use this Flutter plugin https://pub.dartlang.org/packages/webview_flutter
import 'package:webview_flutter/webview_flutter.dart';
return Scaffold(
appBar: AppBar(
title: const Text('WebView example'),
),
body: const WebView(
initialUrl: 'SOME URL',
javascriptMode: JavascriptMode.unrestricted,
),
);
You can use this library to launch urls inside of your app on Android (this is the default behavior for url_launcher on iOS
You can use webview_flutter plugin to achieve that.
Simple example:
WebView(
initialUrl: 'https://www.google.com',
)
To answer your second question:
Is this plugin going to display linear/horizontal progress bar status in the app bar section?
The WebView is just like any other flutter widget so yes, you can show linear/horizontal progress bar in your AppBar they way you have planned it.