Procházet zdrojové kódy

add hidden in example

Ken před 8 roky
rodič
revize
cf43d74871
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      example/lib/main.dart

+ 6 - 0
example/lib/main.dart

@@ -111,6 +111,12 @@ class _MyHomePageState extends State<MyHomePage> {
             },
             child: new Text("Open Webview"),
           ),
+          new RaisedButton(
+            onPressed: () {
+              flutterWebviewPlugin.launch(_ctrl.text, hidden: true);
+            },
+            child: new Text("Open 'hidden' Webview"),
+          ),
           new RaisedButton(
             onPressed: () {
               flutterWebviewPlugin.launch(_ctrl.text, fullScreen: true);