title: google map flutter plugin
body: <p>hello I try to use google map plugin for flutter <a href="https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter" rel="nofollow noreferrer">https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter</a></p>
  
  <p>I use this exemple<br>
  <a href="https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/example/lib" rel="nofollow noreferrer">https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/example/lib</a></p>
  
  <p>but in this exemple there is some page. In my application I need only one map at the launch on the app. Problem, with this exemple I didn't manage to use it at my convenience. So I try to use the minimalist example of the read.me but it's a statlesswidget, and I and can't integer Tag fonction or the map_ui.dart like the complet example. So I tried to pass this stateless in statefull but when I do this I have an error </p>
  
  <p>here is what I tried to compile from the two example </p>
  
  <hr>
  
  <h2>exemple 1 <a href="https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter" rel="nofollow noreferrer">https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter</a></h2>
  
  <pre><code>void main() {
    GoogleMapController.init();
    final GoogleMapOverlayController controller =
    GoogleMapOverlayController.fromSize(width: 300.0, height: 200.0);
    final Widget mapWidget = GoogleMapOverlay(controller: controller);
    runApp(MaterialApp(
      home: new Scaffold(
        appBar: AppBar(title: const Text('Google Maps demo')),
        body: MapUiBody(mapWidget, controller.mapController),
      ),
      navigatorObservers: &lt;NavigatorObserver&gt;[controller.overlayController],
    ));
   }
  </code></pre>
  
  <hr>
  
  <p>exemple 2</p>
  
  <h2><a href="https://github.com/flutter/plugins/blob/master/packages/google_maps_flutter/example/lib/map_ui.dart" rel="nofollow noreferrer">https://github.com/flutter/plugins/blob/master/packages/google_maps_flutter/example/lib/map_ui.dart</a></h2>
  
  <pre><code>class MapUiBody extends StatefulWidget {
     final GoogleMapOverlayController controller;
  
     const MapUiBody(this.controller, GoogleMapController mapController);
  
     @override
     State&lt;StatefulWidget&gt; createState() =&gt;
        MapUiBodyState(controller.mapController);
    }
  
   class MapUiBodyState extends State&lt;MapUiBody&gt; {
    MapUiBodyState(this.mapController);
  
    final GoogleMapController mapController;
  
    @override
     Widget build(BuildContext context) {
      return Column(
      );
    }
  }
  </code></pre>
  
  <hr>
  
  <p>with this, I have an error </p>
  
  <pre><code>body: MapUiBody(mapWidget, controller.mapController),
  </code></pre>
  
  
  
  <pre><code>mapWidget: the argument type Widget can't be assigned to the  parameter type 'GooglemapoverlayController'
  </code></pre>