A plugin for Webview_flutter that is officially maintained by Flutter. Official website: pub.flutter-io.cn/packages/we…

In YAML add:
Dependencies: webview_flutter: ^ 0.3.15 + 1Copy the code
The sample
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; class PrivatePage extends StatefulWidget{ @override PrivatePageState createState() { return PrivatePageState(); } } class PrivatePageState extends State<PrivatePage>{ @override Widget build(BuildContext context) { final Completer<WebViewController> _controller = Completer<WebViewController>(); Return Scaffold(appBar: new appBar (centerTitle: true, title: Text(" privacy policy "),), body: Builder(Builder: (BuildContext context) { return WebView( // initialUrl: "File:///android_asset/private.html ",// Android load local HTML initialUrl: "https://www.jianshu.com/p/6dc3cca1d99a", javascriptMode: JavascriptMode.unrestricted, ); })); }}Copy the code