From 00d230be5b210266eeaa144e0094fbac0ed3fe28 Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Tue, 10 Sep 2019 10:38:39 -0700 Subject: [PATCH] [google_maps_flutter] Fix analyzer failures relating to prefer_const_constructors (#2053) --- 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..addc8831efe3 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` analyzer warnings in example app. + ## 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: