Flutter webview加载视频无法全屏
先上个github的链接吧:https://github.com/flutter/flutter/issues/27101#issuecomment-561316755
大体的顺序就是:
1、首先依赖flutter_inappwebview,(pub地址:https://pub.dev/packages/flutter_inappwebview)。
2、接下来使用时分为两种情况:
(1)使用项目目录中的html:
child: InAppWebView(
initialFile: “assets/index.html”,
initialHeaders: {},
initialOptions: InAppWebViewWidgetOptions(
inAppWebViewOptions: InAppWebViewOptions(
debuggingEnabled: true,
)
),
onWebViewCreated: (InAppWebViewController controller) {
webView = controller;
},
onLoadStart: (InAppWebViewController controller, String url) {
},
onLoadStop: (InAppWebViewController controller, String url) {
},
onConsoleMessage: (InAppWebViewController controller, ConsoleMessage consoleMessage) {
print(“console message: ${cons