Forráskód Böngészése

add hidden in example

Ken 8 éve
szülő
commit
cf43d74871
1 módosított fájl, 6 hozzáadás és 0 törlés
  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);