narimetisaigopi

myweb_view.dart

Nov 27th, 2020
776
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'package:webview_flutter/webview_flutter.dart';
  3.  
  4. class MyWebView extends StatefulWidget {
  5.   String url;
  6.   MyWebView(this.url);
  7.  
  8.   @override
  9.   _MyWebViewState createState() => _MyWebViewState();
  10. }
  11.  
  12. class _MyWebViewState extends State<MyWebView> {
  13.   bool isLoading = true;
  14.  
  15.   @override
  16.   Widget build(BuildContext context) {
  17.     return Scaffold(
  18.       appBar: AppBar(),
  19.       body: WebView(
  20.         initialUrl: widget.url,
  21.       ),
  22.     );
  23.   }
  24. }
  25.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×