Issue I was using google_maps_flutter library in my project. While i hot reload the map or back to map from another view then it crashes with message : Exception has occurred. PlatformException (PlatformException(error, java.lang.IllegalStateException: Trying to create an already created
Continue readingTag: google-maps-flutter
How to open google maps by clicking on a button in flutter
Issue I am new to flutter and I want to open google maps by clicking on button using flutter. Here is my code and in that code on line no 98 I want to open google maps by clicking on
Continue readingFlutter google map web marker on click
Issue I am using this library in my app to load the Google map on the web using this answer as a reference, I am able to add the marker on it but wondering how I can do the marker
Continue readingUpdate Google Map center after ChangeNotifier update
Issue I have a map that displays some markers based on a given location. The location is set using a ChangeNotifier in a separate widget. I have no problem updating the location for the markers however, I would also like
Continue readingI want to know how to show gas stations in google maps flutter
Issue so here’s a picture from google map that I want to show the gas stations on my app like this because I want to make app that show the gas stations locations will anyone help me? I need a
Continue readingHow to make a "WidgetTest" call the "onCameraMove" method?
Issue I would like the onCameraMove method to be called when moveCamera is called. I tried to mock platform channel without success. import ‘dart:async’; import ‘package:flutter/widgets.dart’; import ‘package:flutter_test/flutter_test.dart’; import ‘package:google_maps_flutter/google_maps_flutter.dart’; void main() { TestWidgetsFlutterBinding.ensureInitialized(); testWidgets(‘GoogleMaps onCameraMove’, (WidgetTester tester) async {
Continue readingFlutter Google Map Crash on all screen
Issue ** Flutter version ** Flutter 3.0.1 Dart 2.17.1 DevTools 2.12.2 ** Packages Used ** google_maps_flutter: ^2.1.6 geolocator: ^8.2.1 geocoding: ^2.0.4 ** Added Permission manifest file ** <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <meta-data android:name="com.google.android.geo.API_KEY" android:value="Google Map
Continue readinggoogle_maps_flutter – programmatically set rotation to 0 (bearing to north)
Issue When I create the GoogleMap widget I can set: initialCameraPosition: CameraPosition( target: _initialCameraPosition, zoom: 12.0, bearing: 0.0 ), but after the user changes the rotation, how can I set the bearing to 0.0 again? Solution Use the GoogleMap.onMapCreated callback
Continue readingFlutter how to toggle markers visibility in google maps
Issue How can I toggle the visibility of list of markers in goole maps using a FloatingActionButton? Alternatively, a switch button should also work. This is my function to add the markers: void addAll() async { _markers = Set<Marker>(); int
Continue readingCustom map marker icons are pixelated on physical devices
Issue On Android and iOS, my custom map markers (PNG files) are pixelated on the google_maps_flutter map on physical devices. They are fine on simulators. Why is this? Code: Client usage: if (kIsWeb) { return BitmapDescriptor.fromAssetImage( createLocalImageConfiguration( context, size: selected
Continue reading