Skip to content

Commit 7f5378e

Browse files
collinjacksonmormih
authored andcommitted
[google_maps_flutter] Fix analyzer failures relating to prefer_const_constructors (flutter#2053)
1 parent a4b6297 commit 7f5378e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

packages/google_maps_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.21+1
2+
3+
* Fix `prefer_const_constructors` analyzer warnings in example app.
4+
15
## 0.5.21
26

37
* Don't recreate map elements if they didn't change since last widget build.

packages/google_maps_flutter/example/lib/padding.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
9393
controller: _topController,
9494
keyboardType: TextInputType.number,
9595
textAlign: TextAlign.center,
96-
decoration: InputDecoration(
96+
decoration: const InputDecoration(
9797
hintText: "Top",
9898
),
9999
),
@@ -105,7 +105,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
105105
controller: _bottomController,
106106
keyboardType: TextInputType.number,
107107
textAlign: TextAlign.center,
108-
decoration: InputDecoration(
108+
decoration: const InputDecoration(
109109
hintText: "Bottom",
110110
),
111111
),
@@ -117,7 +117,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
117117
controller: _leftController,
118118
keyboardType: TextInputType.number,
119119
textAlign: TextAlign.center,
120-
decoration: InputDecoration(
120+
decoration: const InputDecoration(
121121
hintText: "Left",
122122
),
123123
),
@@ -129,7 +129,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
129129
controller: _rightController,
130130
keyboardType: TextInputType.number,
131131
textAlign: TextAlign.center,
132-
decoration: InputDecoration(
132+
decoration: const InputDecoration(
133133
hintText: "Right",
134134
),
135135
),

packages/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
author: Flutter Team <[email protected]>
44
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter
5-
version: 0.5.21
5+
version: 0.5.21+1
66

77
dependencies:
88
flutter:

0 commit comments

Comments
 (0)