flutter_inappwebview | Flutter Package (pub.dev)
flutter_inappwebview: ^5.3.2
配置 flutter_inappwebview 插件。
在需要用到的该插件的文件中引入插件包。
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
3. 使用插件
InAppWebView(
initialUrl: "https://www.baidu.com",
initialHeaders: {},
initialOptions: InAppWebViewGroupOptions(
inAppWebViewOptions: InAppWebViewOptions(
debuggingEnabled: true,
)
),
onWebViewCreated: (InAppWebViewController controller) {
},
onLoadStart: (InAppWebViewController controller, String url) {
},
onLoadStop: (InAppWebViewController controller, String url) {
},
)
1. 如果提示