title: Flutter Trying to fire a showModalBottomSheet mystery
body: <p>I question myself sometimes, whether I'm dumb, or Dart (Flutter) is weird.</p>
  
  <p>How does this not work?</p>
  
  <p>I'm using <a href="https://github.com/apptreesoftware/flutter_google_map_view" rel="nofollow noreferrer">https://github.com/apptreesoftware/flutter_google_map_view</a></p>
  
  <p>I show a map, and have added markers. </p>
  
  <p>Since the package supports listeners, when a marker is tapped, I want to show a modal.</p>
  
  <p>Does the listener work? Yep, because the print statement happens.</p>
  
  <p>Does the modal work? I don't know. No error shows, nothing!</p>
  
  <pre><code>mapView.onTouchAnnotation.listen((annotation) {
    print(annotation);
    showModalBottomSheet&lt;void&gt;(
      context: context,
      builder: (BuildContext context) {
        return Container(
          height: 260.0,
          child: Text('Text'),
        );
      },
    );
  });
  </code></pre>
  
  <p>Please, what is the magic bullet?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Lemme thrown in more flesh. This is my Scaffold widget.</p>
  
  <pre><code>MapView mapView = new MapView();  
  
  @override
    Widget build(BuildContext context) {
      return new MaterialApp(
        home: new Scaffold(
          key: scaffoldKey,
          appBar: new AppBar(
            title: new Text('Map View Example'),
          ),
          body: new Column(
            mainAxisAlignment: MainAxisAlignment.start,
            children: &lt;Widget&gt;[
              showMap(context),
            ],
          ),
        ),
      );
  </code></pre>
  
  <p>And <code>showMap(...)</code> looks like this:</p>
  
  <pre><code> showMap(context) {
      mapView.show(
        new MapOptions(
            mapViewType: MapViewType.normal,
            showUserLocation: true,
            showMyLocationButton: true,
            showCompassButton: true,
            initialCameraPosition:
                new CameraPosition(new Location(5.6404963, -0.2285315), 15.0),
            hideToolbar: false,
            title: "Dashboard"),
        // toolbarActions: [new ToolbarAction("Close", 1)],
      );
      mapView.onMapReady.listen((_) {
        mapView.setMarkers(_markers);
      });
      mapView.onTouchAnnotation.listen((annotation) {
        print(annotation);
        showModalBottomSheet&lt;void&gt;(
          context: context,
          builder: (BuildContext context) {
            return Container(
              height: 260.0,
              child: Text('Text'),
            );
          },
        );
      });
    }
  </code></pre>