TypeError: Cannot read properties of undefined (reading 'maps'). Google flutter maps web

Viewed 96

Any idea of how to solve the problem Here

The platform is a flutter web

2 Answers

Add google maps script to web/index.html.

<head>
...
  <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
</head>

See google_maps_flutter_web for details.

Debug using terminal instead of using debug console.

Run this in terminal :

flutter run -d chrome --web-renderer html
Related