This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: google_maps_in_flutter | |
| description: Building a mobile app featuring a Google Map using the Flutter SDK. | |
| version: 1.0.0+1 | |
| environment: | |
| sdk: ">=2.1.0 <3.0.0" | |
| dependencies: | |
| flutter: | |
| sdk: flutter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.google_maps_in_flutter"> | |
| <application | |
| android:name="io.flutter.app.FlutterApplication" | |
| android:label="google_maps_in_flutter" | |
| android:icon="@mipmap/ic_launcher"> | |
| <!-- Add the following entry, with your API key --> | |
| <meta-data android:name="com.google.android.geo.API_KEY" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "AppDelegate.h" | |
| #import "GeneratedPluginRegistrant.h" | |
| // Add the following import. | |
| #import "GoogleMaps/GoogleMaps.h" | |
| @implementation AppDelegate | |
| - (BOOL)application:(UIApplication *)application | |
| didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| [GeneratedPluginRegistrant registerWithRegistry:self]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <!-- Add the following entry, from here, --> | |
| <key>io.flutter.embedded_views_preview</key> | |
| <true/> | |
| <!-- to here. --> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>en</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Uncomment the following line | |
| platform :ios, '9.0' | |
| # CocoaPods analytics sends network stats synchronously affecting flutter build latency. | |
| ENV['COCOAPODS_DISABLE_STATS'] = 'true' | |
| project 'Runner', { | |
| 'Debug' => :debug, | |
| 'Profile' => :release, | |
| 'Release' => :release, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: google_maps_in_flutter | |
| description: Building a mobile app featuring a Google Map using the Flutter SDK. | |
| version: 1.0.0+1 | |
| environment: | |
| sdk: ">=2.1.0 <3.0.0" | |
| dependencies: | |
| flutter: | |
| sdk: flutter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| import 'dart:io'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:json_annotation/json_annotation.dart'; | |
| part 'locations.g.dart'; | |
| @JsonSerializable() | |
| class LatLng { | |
| LatLng({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include: package:pedantic/analysis_options.yaml | |
| analyzer: | |
| exclude: | |
| - lib/src/locations.g.dart | |
| linter: | |
| rules: | |
| - always_declare_return_types | |
| - camel_case_types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
| import 'src/locations.dart' as locations; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } |
OlderNewer