Skip to content

Commit 96fd7c8

Browse files
authored
[google_maps_flutter] [Docs] Note regarding usage within a bounded & an unbound widget (#3691)
Adds a note for the usage of GoogleMaps widget within unbounded & bounded widget. Fixes: flutter/flutter#39234
1 parent 5e9e211 commit 96fd7c8

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 2.2.6
22

33
* Aligns Dart and Flutter SDK constraints.
4+
* Updates README.md to specify not to use GoogleMaps widget within an unbounded widget.
45

56
## 2.2.5
67

packages/google_maps_flutter/google_maps_flutter/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ You can now add a `GoogleMap` widget to your widget tree.
105105
The map view can be controlled with the `GoogleMapController` that is passed to
106106
the `GoogleMap`'s `onMapCreated` callback.
107107

108+
The `GoogleMap` widget should be used within a widget with a bounded size. Using it
109+
in an unbounded widget will cause the application to throw a Flutter exception.
110+
108111
### Sample Usage
109112

110113
<?code-excerpt "readme_sample.dart (MapSample)"?>

packages/google_maps_flutter/google_maps_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_maps_flutter
22
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
33
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
5-
version: 2.2.5
5+
version: 2.2.6
66

77
environment:
88
sdk: ">=2.17.0 <4.0.0"

0 commit comments

Comments
 (0)