From 3a15bdbca1e6da4c792fb0649342663eaf7add23 Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Tue, 7 Jan 2025 16:10:46 +0100 Subject: [PATCH] fix: change stylers from GoogleMapThemeFeature to Map from Map For Styling the map on web Google doesn't allow strings for things like saturation --- CHANGELOG.md | 3 +++ lib/src/google_map_theme.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2287ab9..fd41c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +2.1.2: +* Fix: make the mapstyling Map instead of Map 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. diff --git a/lib/src/google_map_theme.dart b/lib/src/google_map_theme.dart index be4ba6f..f054147 100644 --- a/lib/src/google_map_theme.dart +++ b/lib/src/google_map_theme.dart @@ -36,7 +36,7 @@ class GoogleMapThemeFeature { }); final String? featureType; final String? elementType; - final List> stylers; + final List> stylers; Map toJson() { return { diff --git a/pubspec.yaml b/pubspec.yaml index 6ca8f60..10d8798 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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