fix example, fix #703

This commit is contained in:
Lorenzo Pichilli 2021-03-05 23:24:33 +01:00
parent b6d4fb9596
commit c7c0b9b67f
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ class _MyAppState extends State<MyApp> {
InAppWebViewController? webViewController; InAppWebViewController? webViewController;
InAppWebViewGroupOptions options = InAppWebViewGroupOptions( InAppWebViewGroupOptions options = InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions( crossPlatform: InAppWebViewOptions(
useShouldOverrideUrlLoading: true,
mediaPlaybackRequiresUserGesture: false, mediaPlaybackRequiresUserGesture: false,
), ),
android: AndroidInAppWebViewOptions( android: AndroidInAppWebViewOptions(

View File

@ -23,6 +23,7 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
InAppWebViewController? webViewController; InAppWebViewController? webViewController;
InAppWebViewGroupOptions options = InAppWebViewGroupOptions( InAppWebViewGroupOptions options = InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions( crossPlatform: InAppWebViewOptions(
useShouldOverrideUrlLoading: true,
mediaPlaybackRequiresUserGesture: false, mediaPlaybackRequiresUserGesture: false,
), ),
android: AndroidInAppWebViewOptions( android: AndroidInAppWebViewOptions(