mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Update google_maps sample (#1984)
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
# This file should be version controlled.
|
||||
|
||||
version:
|
||||
revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
channel: beta
|
||||
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
|
||||
channel: stable
|
||||
|
||||
project_type: app
|
||||
|
||||
@@ -13,17 +13,11 @@ project_type: app
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
- platform: android
|
||||
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
- platform: ios
|
||||
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
|
||||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
|
||||
- platform: web
|
||||
create_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
base_revision: 0df8557c56a182d31fa024eeb08c428ae52edf7f
|
||||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
|
||||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
|
||||
|
||||
# User provided section
|
||||
|
||||
|
||||
9
google_maps/README.md
Normal file
9
google_maps/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Google Maps Demo
|
||||
|
||||
This sample Flutter app showcases the [Google Maps for Flutter plugin](https://developers.google.com/maps/flutter-plugin/overview).
|
||||
|
||||
## Getting Started
|
||||
|
||||
1. See the overview at https://developers.google.com/maps/flutter-plugin/overview.
|
||||
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.
|
||||
1. Use the sample code in this folder for the tutorial at https://developers.google.com/maps/flutter-plugin/map-with-marker.
|
||||
@@ -47,7 +47,7 @@ android {
|
||||
applicationId "com.example.google_maps_in_flutter"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion 20
|
||||
minSdkVersion 21
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Google Maps SDK requires platform version 13
|
||||
platform :ios, '13.0'
|
||||
# Google Maps SDK requires platform version 14
|
||||
platform :ios, '14.0'
|
||||
|
||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
||||
|
||||
@@ -56,6 +56,10 @@ class _MyAppState extends State<MyApp> {
|
||||
const Marker(
|
||||
markerId: MarkerId('Sydney'),
|
||||
position: LatLng(-33.86, 151.20),
|
||||
infoWindow: InfoWindow(
|
||||
title: "Sydney",
|
||||
snippet: "Capital of New South Wales",
|
||||
),
|
||||
)
|
||||
},
|
||||
),
|
||||
|
||||
@@ -10,8 +10,7 @@ dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
cupertino_icons: ^1.0.2
|
||||
google_maps_flutter: ^2.2.1
|
||||
google_maps_flutter_web: ^0.5.0
|
||||
google_maps_flutter: ^2.4.0
|
||||
http: ^1.0.0
|
||||
json_annotation: ^4.7.0
|
||||
json_serializable: ^6.5.4
|
||||
|
||||
Reference in New Issue
Block a user