title: Flutter - How to display webview inside application?
body: <p>So i just starting to learn flutter and using its webview widget, but every time I open the route containing webview widget. Android always prompt me with <strong><em>open with webview browser tester</em></strong> instead of just displaying it inside my widget?</p>
  
  <p><a href="https://i.stack.imgur.com/YSocl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YSocl.png" alt="Screenshot of my app"></a></p>
  
  <p>Here is my code.</p>
  
  <pre><code>import 'dart:async';
  
  import 'package:flutter/material.dart';
  import 'package:webview_flutter/webview_flutter.dart';
  
  class DetailLaporanR extends StatelessWidget {
    Completer &lt;WebViewController&gt; _c = Completer&lt;WebViewController&gt;();
    final globalScaff = GlobalKey&lt;ScaffoldState&gt;();
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        key: globalScaff,
        appBar: AppBar(
          title: Text("Detail Laporan"),
        ),
        body: new WebView(
            initialUrl: "https://google.com",
            javaScriptMode: JavaScriptMode.unrestricted,
            onWebViewCreated: (WebViewController webViewController) {
              _c.complete(webViewController);
            },
          ),
        floatingActionButton: FloatingActionButton(
              onPressed: () {
                // verify and submit
                final snackBar = SnackBar(content: Text('Generating, Please Wait...'));
                // Find the Scaffold in the widget tree and use it to show a SnackBar.
                globalScaff.currentState.showSnackBar(snackBar);
              },
              child: Icon(Icons.cloud_download),
              backgroundColor: Colors.redAccent,
            ),
      );
    }
  }
  </code></pre>