FLUTTER WEBVIEW TUTORIAL #3 — Convert a website to an app using flutter.

Hi 👋, everyone and welcome to part three of the flutter webview tutorial series.

PART TWO ARTICLE

import 'package:flutter_inappwebview/flutter_inappwebview.dart';class WebExampleThree extends InAppBrowser {
@override
Future onBrowserCreated() async {}
@override
Future onLoadStart(url) async {}
@override
Future onLoadStop(url) async {}
@override
void onLoadError(url, code, msg) {}
@override
void onProgressChanged(progress) {}
@override
void onExit() {}
@override
Future<ShouldOverrideUrlLoadingAction> shouldOverrideUrlLoading(
ShouldOverrideUrlLoadingRequest shouldOverrideUrlLoadingRequest) async {
return ShouldOverrideUrlLoadingAction.ALLOW;
}
@override
void onLoadResource(response) {}
@override
void onConsoleMessage(msg) {}
}
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class _HomePageState extends State<HomePage> {
final WebExampleThree inAppBrowser = WebExampleThree();
MaterialButton(
onPressed: () {
inAppBrowser.openUrl(url: 'https://obounce.net');
},
child: Text(
'Example 3',
style: TextStyle(color: Colors.white),
),
color: Colors.purple[700],
padding: EdgeInsets.symmetric(horizontal: 70, vertical: 12),
),

Hi, I run the YouTube channel called TechWithSam! I’m passionate about learning and teaching programming majorly Flutter for the moment.