Webview In Flutter

Webview In Flutter :

This flutter tutorial open the URL WebView in flutter. If http URL not open the flutter webview then set manifest

<application
        android:usesCleartextTraffic="true"
>
  • WebView in flutter
  • WebView http url open

plugin
flutter_webview_plugin:

Webview is a common for mobile apps.it is pretty simple to develop using flutter.this is done using plugin webview_flutter

how to webview widget work in Android and iOS :

Android : On Android the WebView widget is backed by a WebView.

iOS : On iOS the WebView widget is backed by a WKWebView. in a newer version UIKit control is available to display a webview in iOS

Screenshot :

Webview In Flutter

main.dart

import 'package:flutter/material.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(title: Text('Webview flutter')),
            body: WebviewScaffold(
              url: 'https://fluttertutorial.in',
              withZoom: true,
              withLocalStorage: true,
              hidden: true,
              initialChild: Container(
                color: Colors.white,
                child: const Center(
                  child: Text('Waiting.....'),
                ),
              ),
            )));
  }
}

The flutter tutorial  is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application

For more information about Flutter. visit www.fluttertutorial.in