From 9bd4d5f850398b8fb0587cb43ed6ce427b38a285 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Mon, 9 Sep 2019 15:09:05 -0700 Subject: [PATCH 1/2] Fix build break relating to prefer_const_constructors --- packages/google_maps_flutter/CHANGELOG.md | 4 ++++ packages/google_maps_flutter/example/lib/padding.dart | 8 ++++---- packages/google_maps_flutter/pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index c88a00be904a..2a7c6179cc24 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.21+1 + +* Fix `prefer_const_constructors` warnings. + ## 0.5.21 * Don't recreate map elements if they didn't change since last widget build. diff --git a/packages/google_maps_flutter/example/lib/padding.dart b/packages/google_maps_flutter/example/lib/padding.dart index be45cb38d0c1..599f8a564b6e 100644 --- a/packages/google_maps_flutter/example/lib/padding.dart +++ b/packages/google_maps_flutter/example/lib/padding.dart @@ -93,7 +93,7 @@ class MarkerIconsBodyState extends State { controller: _topController, keyboardType: TextInputType.number, textAlign: TextAlign.center, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "Top", ), ), @@ -105,7 +105,7 @@ class MarkerIconsBodyState extends State { controller: _bottomController, keyboardType: TextInputType.number, textAlign: TextAlign.center, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "Bottom", ), ), @@ -117,7 +117,7 @@ class MarkerIconsBodyState extends State { controller: _leftController, keyboardType: TextInputType.number, textAlign: TextAlign.center, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "Left", ), ), @@ -129,7 +129,7 @@ class MarkerIconsBodyState extends State { controller: _rightController, keyboardType: TextInputType.number, textAlign: TextAlign.center, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "Right", ), ), diff --git a/packages/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/pubspec.yaml index f8a852998d42..a72cb71fdd78 100644 --- a/packages/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: google_maps_flutter description: A Flutter plugin for integrating Google Maps in iOS and Android applications. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter -version: 0.5.21 +version: 0.5.21+1 dependencies: flutter: From ac57212793693e0d921dd3a31f4676be655c34f1 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Mon, 9 Sep 2019 15:10:49 -0700 Subject: [PATCH 2/2] Update CHANGELOG --- packages/google_maps_flutter/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index 2a7c6179cc24..addc8831efe3 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.5.21+1 -* Fix `prefer_const_constructors` warnings. +* Fix `prefer_const_constructors` analyzer warnings in example app. ## 0.5.21