Update in_app_webiew_example.screen.dart
This commit is contained in:
parent
a7cda8d5b6
commit
47427044c8
@ -17,6 +17,7 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
|
|||||||
|
|
||||||
InAppWebViewController? webViewController;
|
InAppWebViewController? webViewController;
|
||||||
InAppWebViewSettings settings = InAppWebViewSettings(
|
InAppWebViewSettings settings = InAppWebViewSettings(
|
||||||
|
isInspectable: kDebugMode,
|
||||||
mediaPlaybackRequiresUserGesture: false,
|
mediaPlaybackRequiresUserGesture: false,
|
||||||
allowsInlineMediaPlayback: true,
|
allowsInlineMediaPlayback: true,
|
||||||
iframeAllow: "camera; microphone",
|
iframeAllow: "camera; microphone",
|
||||||
@ -44,7 +45,7 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
|
|||||||
await webViewController?.clearFocus();
|
await webViewController?.clearFocus();
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
settings: ContextMenuSettings(hideDefaultSystemContextMenuItems: true),
|
settings: ContextMenuSettings(hideDefaultSystemContextMenuItems: false),
|
||||||
onCreateContextMenu: (hitTestResult) async {
|
onCreateContextMenu: (hitTestResult) async {
|
||||||
print("onCreateContextMenu");
|
print("onCreateContextMenu");
|
||||||
print(hitTestResult.extra);
|
print(hitTestResult.extra);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user