fix: change stylers from GoogleMapThemeFeature to Map<String, dynamic> from Map<String, String>

For Styling the map on web Google doesn't allow strings for things like saturation
This commit is contained in:
Freek van de Ven 2025-01-07 16:10:46 +01:00 committed by FlutterJoey
parent 07225253aa
commit 3a15bdbca1
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2.1.2:
* Fix: make the mapstyling Map<String, dynamic> instead of Map<String, String> to support other values than strings that are not automatically converted anymore by google maps on web.
2.1.1:
* Fix: add back deprecated 'fromBytes' method to support autoscaling of images again. In the future this should be done with the bytes method for BitmapDescriptor.

View file

@ -36,7 +36,7 @@ class GoogleMapThemeFeature {
});
final String? featureType;
final String? elementType;
final List<Map<String, String>> stylers;
final List<Map<String, dynamic>> stylers;
Map toJson() {
return {

View file

@ -1,6 +1,6 @@
name: flutter_google_track_and_trace
description: An Iconica Flutter plugin for Track & Trace Package
version: 2.1.1
version: 2.1.2
repository: https://github.com/Iconica-Development/flutter_google_track_and_trace
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub