Skip to content

Commit

Permalink
updated in_app_browser_example.screen.dart example
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Jun 10, 2023
1 parent 6243183 commit 7d49baa
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions example/lib/in_app_browser_example.screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,13 @@ class _InAppBrowserExampleScreenState extends State<InAppBrowserExampleScreen> {
children: <Widget>[
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,
Expand Down

0 comments on commit 7d49baa

Please sign in to comment.