daily pastebin goal
71%
SHARE
TWEET

request browser

bonaggioandroid Mar 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
  3.  
  4. void main () => runApp(MaterialApp(
  5.   home: MyApp(),
  6.   debugShowCheckedModeBanner: false,
  7.   theme: ThemeData(
  8.     primarySwatch: Colors.purple,
  9.   ),
  10. ));
  11.  
  12. class MyApp extends StatefulWidget {
  13.   @override
  14.   _MyAppState createState() => _MyAppState();
  15.   }
  16.  
  17.   class _MyAppState extends State<MyApp> {
  18.     @override
  19.     Widget build(BuildContext context) {
  20.       return WebviewScaffold(
  21.  appBar: AppBar(
  22.           title: Text("Browser"),
  23.         ),
  24.         url: "https://google.com.br",
  25.         withZoom:true
  26.       );
  27.     }
  28.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top