Skip to content

Commit 286b5ca

Browse files
authored
Update google_maps sample (#1984)
1 parent 058b7fe commit 286b5ca

File tree

6 files changed

+23
-17
lines changed

6 files changed

+23
-17
lines changed

google_maps/.metadata

+6-12
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,20 @@
44
# This file should be version controlled.
55

66
version:
7-
revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
8-
channel: beta
7+
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
8+
channel: stable
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
17-
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
18-
- platform: android
19-
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
20-
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
21-
- platform: ios
22-
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
23-
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
16+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
17+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
2418
- platform: web
25-
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
26-
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
19+
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
20+
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
2721

2822
# User provided section
2923

google_maps/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Google Maps Demo
2+
3+
This sample Flutter app showcases the [Google Maps for Flutter plugin](https://developers.google.com/maps/flutter-plugin/overview).
4+
5+
## Getting Started
6+
7+
1. See the overview at https://developers.google.com/maps/flutter-plugin/overview.
8+
1. Follow the setup guide at https://developers.google.com/maps/flutter-plugin/config to learn where to insert your API keys. This demo will not run without API keys added.
9+
1. Use the sample code in this folder for the tutorial at https://developers.google.com/maps/flutter-plugin/map-with-marker.

google_maps/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ android {
4747
applicationId "com.example.google_maps_in_flutter"
4848
// You can update the following values to match your application needs.
4949
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50-
minSdkVersion 20
50+
minSdkVersion 21
5151
targetSdkVersion flutter.targetSdkVersion
5252
versionCode flutterVersionCode.toInteger()
5353
versionName flutterVersionName

google_maps/ios/Podfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Google Maps SDK requires platform version 13
2-
platform :ios, '13.0'
1+
# Google Maps SDK requires platform version 14
2+
platform :ios, '14.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

google_maps/lib/main.dart

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class _MyAppState extends State<MyApp> {
5656
const Marker(
5757
markerId: MarkerId('Sydney'),
5858
position: LatLng(-33.86, 151.20),
59+
infoWindow: InfoWindow(
60+
title: "Sydney",
61+
snippet: "Capital of New South Wales",
62+
),
5963
)
6064
},
6165
),

google_maps/pubspec.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ dependencies:
1010
flutter:
1111
sdk: flutter
1212
cupertino_icons: ^1.0.2
13-
google_maps_flutter: ^2.2.1
14-
google_maps_flutter_web: ^0.5.0
13+
google_maps_flutter: ^2.4.0
1514
http: ^1.0.0
1615
json_annotation: ^4.7.0
1716
json_serializable: ^6.5.4

0 commit comments

Comments
 (0)