Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[google_maps_flutter] Fix analyzer failures relating to prefer_const_…
…constructors (flutter#2053)
  • Loading branch information
collinjackson authored and amirh committed Sep 10, 2019
commit 00d230be5b210266eeaa144e0094fbac0ed3fe28
4 changes: 4 additions & 0 deletions packages/google_maps_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 4 additions & 4 deletions packages/google_maps_flutter/example/lib/padding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
controller: _topController,
keyboardType: TextInputType.number,
textAlign: TextAlign.center,
decoration: InputDecoration(
decoration: const InputDecoration(
hintText: "Top",
),
),
Expand All @@ -105,7 +105,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
controller: _bottomController,
keyboardType: TextInputType.number,
textAlign: TextAlign.center,
decoration: InputDecoration(
decoration: const InputDecoration(
hintText: "Bottom",
),
),
Expand All @@ -117,7 +117,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
controller: _leftController,
keyboardType: TextInputType.number,
textAlign: TextAlign.center,
decoration: InputDecoration(
decoration: const InputDecoration(
hintText: "Left",
),
),
Expand All @@ -129,7 +129,7 @@ class MarkerIconsBodyState extends State<MarkerIconsBody> {
controller: _rightController,
keyboardType: TextInputType.number,
textAlign: TextAlign.center,
decoration: InputDecoration(
decoration: const InputDecoration(
hintText: "Right",
),
),
Expand Down
2 changes: 1 addition & 1 deletion packages/google_maps_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: google_maps_flutter
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter
version: 0.5.21
version: 0.5.21+1

dependencies:
flutter:
Expand Down