소스 검색

add hidden in example

Ken 8 년 전
부모
커밋
cf43d74871
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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);