With the help of flutterflow Sensei (ChatGPT) I have created a custom google maps widget but running into an unknown error on the code and when running a test I get this error: The argument type 'LatLng/*1*/' can't be assigned to the parameter type 'LatLng/*2*/'.
- 'LatLng/*1*/' is from 'package:pocket_caddy/flutter_flow/lat_lng.dart' ('lib/flutter_flow/lat_lng.dart').
- 'LatLng/*2*/' is from 'package:google_maps_flutter_platform_interface/src/types/location.dart' ('/root/.pub-cache/hosted/pub.dev/google_maps_flutter_platform_interface-2.9.3/lib/src/types/location.dart').
In the code I am taking the flutterflow latlng from a document turning it into google maps flutter latlng to create markers on the map. I have implemented this code bassed on Sensei's input
// Helper function to convert FlutterFlow LatLng to Google Maps LatLng
google_maps.LatLng convertToGoogleMapsLatLng(flutter_flow.LatLng latLng) {
return google_maps.LatLng(latLng.latitude, latLng.longitude);
I am by no means a coder and wanted to go a no-code route but the integrated google maps widget did not have enough functionality for what I needed.