Closed hackerunet closed 4 years ago
Is this on Flutter Web, Android or iOS?
I think that this code base fails to check if there is an onTap callback, so it tries to call on null. It should be straightforward to fix, but an easy workaround is to just pass an empty onTap to the GoogleMap object like this:
onTap: (LatLng pos){}
Environment: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.17.2, on Linux, locale es_CO.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Android Studio (version 3.5) [✓] IntelliJ IDEA Community Edition (version 2019.3) [!] VS Code (version 1.41.1) ✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available)
Dart VM version: 2.7.0 (Unknown timestamp) on "linux_x64"
Steps to Reproduce
1) Add a marker 2) Tap over the marker to display the information window. 3) Tap over any other area over the map
Expected results: No errors should be displayed after tap in a map area without markers or any other
Actual results:
My widget code: