diff --git a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md
index a519cfc7ada..d1299dfcea6 100644
--- a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md
+++ b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md
@@ -1,3 +1,9 @@
+# 0.5.9
+
+* Updates `package:google_maps` dependency to latest (`^8.0.0`).
+* Supports `web: ">=0.5.1 <2.0.0"`.
+* Updates SDK version to Dart `^3.4.0`. Flutter `^3.22.0`.
+
## 0.5.8
* Adds support for BitmapDescriptor classes `AssetMapBitmap` and `BytesMapBitmap`.
diff --git a/packages/google_maps_flutter/google_maps_flutter_web/README.md b/packages/google_maps_flutter/google_maps_flutter_web/README.md
index c87e1082025..1873645d763 100644
--- a/packages/google_maps_flutter/google_maps_flutter_web/README.md
+++ b/packages/google_maps_flutter/google_maps_flutter_web/README.md
@@ -59,7 +59,7 @@ If you need marker clustering support, modify the
tag to load the [js-mar
-
+
```
diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart
index d7c9ae288f4..7a735062c38 100644
--- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart
+++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.dart
@@ -20,12 +20,24 @@ import 'google_maps_controller_test.mocks.dart';
// LatLng values.
const String _kCloudMapId = '000000000000000'; // Dummy map ID.
+gmaps.Map mapShim() => throw UnimplementedError();
+
@GenerateNiceMocks(>[
- MockSpec(),
- MockSpec(),
- MockSpec(),
- MockSpec(),
- MockSpec(),
+ MockSpec(
+ fallbackGenerators: {#googleMap: mapShim},
+ ),
+ MockSpec(
+ fallbackGenerators: {#googleMap: mapShim},
+ ),
+ MockSpec(
+ fallbackGenerators: {#googleMap: mapShim},
+ ),
+ MockSpec(
+ fallbackGenerators: {#googleMap: mapShim},
+ ),
+ MockSpec(
+ fallbackGenerators: {#googleMap: mapShim},
+ ),
])
/// Test Google Map Controller
@@ -221,7 +233,7 @@ void main() {
late MockPolygonsController polygons;
late MockPolylinesController polylines;
late MockTileOverlaysController tileOverlays;
- late gmaps.GMap map;
+ late gmaps.Map map;
setUp(() {
circles = MockCirclesController();
@@ -229,7 +241,7 @@ void main() {
polygons = MockPolygonsController();
polylines = MockPolylinesController();
tileOverlays = MockTileOverlaysController();
- map = gmaps.GMap(createDivElement());
+ map = gmaps.Map(createDivElement());
});
testWidgets('listens to map events', (WidgetTester tester) async {
@@ -246,19 +258,19 @@ void main() {
// Trigger events on the map, and verify they've been broadcast to the stream
final Stream> capturedEvents = stream.stream.take(5);
- gmaps.Event.trigger(
+ gmaps.event.trigger(
map,
'click',
-