2

I'm adding flutter module into Android native application, this module contain google map, when the flutter module get initialized, it rout to flutter page but the map do not show. when I debug I get this exception:

MissingPluginException : no implementation found for method create on channel flutter/platform_views

this is Flutter code

class _TrackingMapsState extends State<TrackingMaps> {
  GoogleMapController _controller;
  static LatLng _initialPosition;
  Set<Marker> startedCircuitMarker = Set();
  final LatLng _center = const LatLng(45.521563, -122.677433);



  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        appBar: AppBar(
          title: Text('Localisation de Transport'),
        ),
        body: GoogleMap(
          onMapCreated: (GoogleMapController controller) {
            setState(() {
              this._controller = controller;
            });
            // startMqttConnection();
          },
          myLocationEnabled: true,
          myLocationButtonEnabled: true,
          markers: startedCircuitMarker,
          initialCameraPosition: CameraPosition(
            target: _center,
            zoom: 11.0,
          ),
        ),
      ),
    );
  }
Nelson Jr.
  • 1,189
  • 8
  • 11
Adil Sakout
  • 75
  • 1
  • 10

1 Answers1

0

1- flutter clean

2- flutter pub get

3- Stop app

4- Run again

Jaydeep chatrola
  • 2,423
  • 11
  • 17