From 7d49baa8e0568ab92daf295736f443866cbd33b8 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Sun, 11 Jun 2023 01:59:43 +0200 Subject: [PATCH] updated in_app_browser_example.screen.dart example --- example/lib/in_app_browser_example.screen.dart | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/example/lib/in_app_browser_example.screen.dart b/example/lib/in_app_browser_example.screen.dart index 71cdcfd8..a7b7cb3b 100755 --- a/example/lib/in_app_browser_example.screen.dart +++ b/example/lib/in_app_browser_example.screen.dart @@ -108,24 +108,13 @@ class _InAppBrowserExampleScreenState extends State { children: [ ElevatedButton( onPressed: () async { - widget.browser.addMenuItem(InAppBrowserMenuItem( - id: 2, - title: "Test 2", - icon: AndroidResource(name: "ic_menu_edit", defType: "drawable", defPackage: "android"), - iconColor: Colors.red, - onClick: () { - widget.browser.webViewController?.reload(); - }, - )); await widget.browser.openUrlRequest( urlRequest: URLRequest(url: WebUri("https://flutter.dev")), settings: InAppBrowserClassSettings( browserSettings: InAppBrowserSettings( toolbarTopBackgroundColor: Colors.blue, - presentationStyle: ModalPresentationStyle.POPOVER, - hideCloseButton: true, - hideDefaultMenuItems: true), + presentationStyle: ModalPresentationStyle.POPOVER), webViewSettings: InAppWebViewSettings( isInspectable: kDebugMode, useShouldOverrideUrlLoading: true,