title: How can I go back to the previous page with flutter_webview on button click?
body: <p>I want to build a simple app using <code>webview_flutter</code> with no <code>AppBar</code>, with a static URL, and just a simple <code>floatingActionButton</code> on the bottom of the screen to navigate to the previous page, but I don't know how to do it.</p>
  
  <p>Can someone just give me some guidelines so I can try to make the button do what it is supposed to do?</p>
  
  <p>Here's an image of the app with the button:</p>
  
  <p><img src="https://i.imgur.com/W9rvbGB.jpg" alt=""></p>
  
  <p>I dunno what to try, but I'm trying to learn, sry about that =D</p>
  
  <p>This is my whole code:
  =)</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:webview_flutter/webview_flutter.dart';
  import 'package:flutter/services.dart';
  import 'dart:async';
  
  void main () {
    runApp(MaterialApp(
      title: 'Something',
      home: AplicativoB2b(),
      debugShowCheckedModeBanner: false,
    ));
    SystemChrome.setEnabledSystemUIOverlays ([]);
  }
  
  class AplicativoB2b extends StatefulWidget {
    @override
    _AplicativoB2bState createState() =&gt; _AplicativoB2bState();
  }
  
  class _AplicativoB2bState extends State&lt;AplicativoB2b&gt; {
  
    Completer&lt;WebViewController&gt; _controller = Completer&lt;WebViewController&gt;();
  
    @override
    Widget build(BuildContext context) {
  
      return Scaffold(
        body: WebView(
          initialUrl: 'https://google.com',
          javascriptMode: JavascriptMode.unrestricted,
          onWebViewCreated: (WebViewController webViewController) {
             _controller.complete(webViewController);
          },
        ),
        floatingActionButton: FloatingActionButton(
                onPressed: () {
                 //HELP ME HERE!! =(
                },
                child: const Icon(Icons.arrow_back),
                backgroundColor: Colors.black,
              ),
        // bottomNavigationBar: BottomAppBar(color: Colors.white, child: Container(height: 50.0),),
        // floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
        );
    }
  }
  </code></pre>