gpt4 book ai didi

flutter - inappwebview中的全屏图标太小了

转载 作者:行者123 更新时间:2023-12-03 03:31:09 26 4
gpt4 key购买 nike

如何使inappwebview库中的全屏图标和html中的视频播放器的其他图标更大?

最佳答案

我们应该在AndroidInAppWebViewOption中设置useWideViewPort:false

InAppWebView(
initialOptions: InAppWebViewGroupOptions(
android: AndroidInAppWebViewOptions(
useWideViewPort: false,
),
ios: IOSInAppWebViewOptions(
enableViewportScale: false,
),
crossPlatform: InAppWebViewOptions(
debuggingEnabled: true,
javaScriptEnabled: true,
),
),

onWebViewCreated: (InAppWebViewController webViewController) {
_controller.complete(webViewController);
_webViewController = webViewController;

if (data.item3) {
_webViewController.loadUrl(url:data.item2.link);
}
},
onLoadStart: (InAppWebViewController webViewController,String url) {
_webViewController = webViewController;
print('Page started loading: $url');
},
onLoadStop: (InAppWebViewController webViewController,String url) {
_webViewController = webViewController;
print('Page finished loading: $url');
},

),

关于flutter - inappwebview中的全屏图标太小了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63787734/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com