├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── google_maps_example
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── images
│ ├── avatar-1.png
│ ├── avatar-2.png
│ ├── avatar-3.png
│ ├── avatar-4.png
│ ├── avatar-5.png
│ ├── avatar-6.png
│ └── avatar-7.png
├── markers
│ ├── marker-1.png
│ ├── marker-2.png
│ ├── marker-3.png
│ ├── marker-4.png
│ ├── marker-5.png
│ ├── marker-6.png
│ └── marker-7.png
└── screenshots
│ ├── circles-page.png
│ ├── find-friends-page.png
│ ├── home-page-theme.png
│ └── home-page.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── main.dart
├── models
│ └── map_style.dart
└── pages
│ ├── find_friends.dart
│ └── map_circles.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
├── Icon-512.png
├── Icon-maskable-192.png
└── Icon-maskable-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # google_maps_example
2 | > Google maps Example application is a mobile application user interface for managing one's Google maps possible integration User interface exploring different user screens required for a kind of application.
3 |
4 | ## Development Setup
5 | Clone the repository and run the following commands:
6 | ```
7 | flutter pub get
8 | flutter run
9 | ```
10 |
11 | ## Screenshots
12 |
13 | ### Home Page
14 |
15 |
16 |
17 | ### Find Friends Page
18 |
19 |
20 | ### Circles Page
21 |
22 |
23 |
24 | ## 👤 Author
25 |
26 | - GitHub: [@isaacpitwa](https://github.com/isaacpitwa)
27 | - Twitter: [@isaacpitwa](https://twitter.com/isaacpitwa)
28 | - LinkedIn: [LinkedIn](https://linkedin.com/in/isaac-pitwa)
29 |
30 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 |
31 | compileOptions {
32 | sourceCompatibility JavaVersion.VERSION_1_8
33 | targetCompatibility JavaVersion.VERSION_1_8
34 | }
35 |
36 | kotlinOptions {
37 | jvmTarget = '1.8'
38 | }
39 |
40 | sourceSets {
41 | main.java.srcDirs += 'src/main/kotlin'
42 | }
43 |
44 | defaultConfig {
45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46 | applicationId "com.example.google_maps_example"
47 | minSdkVersion flutter.minSdkVersion
48 | targetSdkVersion flutter.targetSdkVersion
49 | versionCode flutterVersionCode.toInteger()
50 | versionName flutterVersionName
51 | }
52 |
53 | buildTypes {
54 | release {
55 | // TODO: Add your own signing config for the release build.
56 | // Signing with the debug keys for now, so `flutter run --release` works.
57 | signingConfig signingConfigs.debug
58 | }
59 | }
60 | }
61 |
62 | flutter {
63 | source '../..'
64 | }
65 |
66 | dependencies {
67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
68 | }
69 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
9 |
17 |
21 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/google_maps_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.google_maps_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/images/avatar-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-1.png
--------------------------------------------------------------------------------
/assets/images/avatar-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-2.png
--------------------------------------------------------------------------------
/assets/images/avatar-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-3.png
--------------------------------------------------------------------------------
/assets/images/avatar-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-4.png
--------------------------------------------------------------------------------
/assets/images/avatar-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-5.png
--------------------------------------------------------------------------------
/assets/images/avatar-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-6.png
--------------------------------------------------------------------------------
/assets/images/avatar-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/images/avatar-7.png
--------------------------------------------------------------------------------
/assets/markers/marker-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-1.png
--------------------------------------------------------------------------------
/assets/markers/marker-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-2.png
--------------------------------------------------------------------------------
/assets/markers/marker-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-3.png
--------------------------------------------------------------------------------
/assets/markers/marker-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-4.png
--------------------------------------------------------------------------------
/assets/markers/marker-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-5.png
--------------------------------------------------------------------------------
/assets/markers/marker-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-6.png
--------------------------------------------------------------------------------
/assets/markers/marker-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/markers/marker-7.png
--------------------------------------------------------------------------------
/assets/screenshots/circles-page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/screenshots/circles-page.png
--------------------------------------------------------------------------------
/assets/screenshots/find-friends-page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/screenshots/find-friends-page.png
--------------------------------------------------------------------------------
/assets/screenshots/home-page-theme.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/screenshots/home-page-theme.png
--------------------------------------------------------------------------------
/assets/screenshots/home-page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/assets/screenshots/home-page.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - google_maps_flutter (0.0.1):
4 | - Flutter
5 | - GoogleMaps
6 | - GoogleMaps (4.1.0):
7 | - GoogleMaps/Maps (= 4.1.0)
8 | - GoogleMaps/Base (4.1.0)
9 | - GoogleMaps/Maps (4.1.0):
10 | - GoogleMaps/Base
11 |
12 | DEPENDENCIES:
13 | - Flutter (from `Flutter`)
14 | - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
15 |
16 | SPEC REPOS:
17 | trunk:
18 | - GoogleMaps
19 |
20 | EXTERNAL SOURCES:
21 | Flutter:
22 | :path: Flutter
23 | google_maps_flutter:
24 | :path: ".symlinks/plugins/google_maps_flutter/ios"
25 |
26 | SPEC CHECKSUMS:
27 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
28 | google_maps_flutter: abdb8dee6c52d4be36ad131ee6ebfacd14417c5a
29 | GoogleMaps: 008e2c80e38605b56b560e8deb73d4194ff30bef
30 |
31 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
32 |
33 | COCOAPODS: 1.11.2
34 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0702A66DE50325EBDDFD3C59 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3092812AB7478A7B4BC4C46D /* Pods_Runner.framework */; };
11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 1BED94DBA3F2A82E2D8ED0B1 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
36 | 3092812AB7478A7B4BC4C46D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 7FDDA4FF1FD3DC5724F7B447 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | F69A88B09CF892BF9CE08BDD /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 0702A66DE50325EBDDFD3C59 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 2DFCBB9F388F665DFEBDCF73 /* Pods */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 7FDDA4FF1FD3DC5724F7B447 /* Pods-Runner.debug.xcconfig */,
68 | 1BED94DBA3F2A82E2D8ED0B1 /* Pods-Runner.release.xcconfig */,
69 | F69A88B09CF892BF9CE08BDD /* Pods-Runner.profile.xcconfig */,
70 | );
71 | name = Pods;
72 | path = Pods;
73 | sourceTree = "";
74 | };
75 | 9740EEB11CF90186004384FC /* Flutter */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
79 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
80 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
81 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
82 | );
83 | name = Flutter;
84 | sourceTree = "";
85 | };
86 | 97C146E51CF9000F007C117D = {
87 | isa = PBXGroup;
88 | children = (
89 | 9740EEB11CF90186004384FC /* Flutter */,
90 | 97C146F01CF9000F007C117D /* Runner */,
91 | 97C146EF1CF9000F007C117D /* Products */,
92 | 2DFCBB9F388F665DFEBDCF73 /* Pods */,
93 | C3170AA64CD83D4BDF425EEC /* Frameworks */,
94 | );
95 | sourceTree = "";
96 | };
97 | 97C146EF1CF9000F007C117D /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 97C146EE1CF9000F007C117D /* Runner.app */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 97C146F01CF9000F007C117D /* Runner */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
111 | 97C147021CF9000F007C117D /* Info.plist */,
112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
114 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
115 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
116 | );
117 | path = Runner;
118 | sourceTree = "";
119 | };
120 | C3170AA64CD83D4BDF425EEC /* Frameworks */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 3092812AB7478A7B4BC4C46D /* Pods_Runner.framework */,
124 | );
125 | name = Frameworks;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | 0FB589423659339767F5ABD7 /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | 9478F6C90714614D78713ADB /* [CP] Copy Pods Resources */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1300;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 0FB589423659339767F5ABD7 /* [CP] Check Pods Manifest.lock */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputFileListPaths = (
207 | );
208 | inputPaths = (
209 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
210 | "${PODS_ROOT}/Manifest.lock",
211 | );
212 | name = "[CP] Check Pods Manifest.lock";
213 | outputFileListPaths = (
214 | );
215 | outputPaths = (
216 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
221 | showEnvVarsInLog = 0;
222 | };
223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Thin Binary";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
236 | };
237 | 9478F6C90714614D78713ADB /* [CP] Copy Pods Resources */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputFileListPaths = (
243 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
244 | );
245 | name = "[CP] Copy Pods Resources";
246 | outputFileListPaths = (
247 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
248 | );
249 | runOnlyForDeploymentPostprocessing = 0;
250 | shellPath = /bin/sh;
251 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
252 | showEnvVarsInLog = 0;
253 | };
254 | 9740EEB61CF901F6004384FC /* Run Script */ = {
255 | isa = PBXShellScriptBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | );
259 | inputPaths = (
260 | );
261 | name = "Run Script";
262 | outputPaths = (
263 | );
264 | runOnlyForDeploymentPostprocessing = 0;
265 | shellPath = /bin/sh;
266 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
267 | };
268 | /* End PBXShellScriptBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 97C146EA1CF9000F007C117D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXSourcesBuildPhase section */
281 |
282 | /* Begin PBXVariantGroup section */
283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
284 | isa = PBXVariantGroup;
285 | children = (
286 | 97C146FB1CF9000F007C117D /* Base */,
287 | );
288 | name = Main.storyboard;
289 | sourceTree = "";
290 | };
291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 97C147001CF9000F007C117D /* Base */,
295 | );
296 | name = LaunchScreen.storyboard;
297 | sourceTree = "";
298 | };
299 | /* End PBXVariantGroup section */
300 |
301 | /* Begin XCBuildConfiguration section */
302 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
333 | ENABLE_NS_ASSERTIONS = NO;
334 | ENABLE_STRICT_OBJC_MSGSEND = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_NO_COMMON_BLOCKS = YES;
337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
339 | GCC_WARN_UNDECLARED_SELECTOR = YES;
340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341 | GCC_WARN_UNUSED_FUNCTION = YES;
342 | GCC_WARN_UNUSED_VARIABLE = YES;
343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
344 | MTL_ENABLE_DEBUG_INFO = NO;
345 | SDKROOT = iphoneos;
346 | SUPPORTED_PLATFORMS = iphoneos;
347 | TARGETED_DEVICE_FAMILY = "1,2";
348 | VALIDATE_PRODUCT = YES;
349 | };
350 | name = Profile;
351 | };
352 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
353 | isa = XCBuildConfiguration;
354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
359 | DEVELOPMENT_TEAM = A68U686RLD;
360 | ENABLE_BITCODE = NO;
361 | INFOPLIST_FILE = Runner/Info.plist;
362 | LD_RUNPATH_SEARCH_PATHS = (
363 | "$(inherited)",
364 | "@executable_path/Frameworks",
365 | );
366 | PRODUCT_BUNDLE_IDENTIFIER = com.example.googleMapsExample;
367 | PRODUCT_NAME = "$(TARGET_NAME)";
368 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
369 | SWIFT_VERSION = 5.0;
370 | VERSIONING_SYSTEM = "apple-generic";
371 | };
372 | name = Profile;
373 | };
374 | 97C147031CF9000F007C117D /* Debug */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | ALWAYS_SEARCH_USER_PATHS = NO;
378 | CLANG_ANALYZER_NONNULL = YES;
379 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
380 | CLANG_CXX_LIBRARY = "libc++";
381 | CLANG_ENABLE_MODULES = YES;
382 | CLANG_ENABLE_OBJC_ARC = YES;
383 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
384 | CLANG_WARN_BOOL_CONVERSION = YES;
385 | CLANG_WARN_COMMA = YES;
386 | CLANG_WARN_CONSTANT_CONVERSION = YES;
387 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
388 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
389 | CLANG_WARN_EMPTY_BODY = YES;
390 | CLANG_WARN_ENUM_CONVERSION = YES;
391 | CLANG_WARN_INFINITE_RECURSION = YES;
392 | CLANG_WARN_INT_CONVERSION = YES;
393 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
394 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
398 | CLANG_WARN_STRICT_PROTOTYPES = YES;
399 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
400 | CLANG_WARN_UNREACHABLE_CODE = YES;
401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
403 | COPY_PHASE_STRIP = NO;
404 | DEBUG_INFORMATION_FORMAT = dwarf;
405 | ENABLE_STRICT_OBJC_MSGSEND = YES;
406 | ENABLE_TESTABILITY = YES;
407 | GCC_C_LANGUAGE_STANDARD = gnu99;
408 | GCC_DYNAMIC_NO_PIC = NO;
409 | GCC_NO_COMMON_BLOCKS = YES;
410 | GCC_OPTIMIZATION_LEVEL = 0;
411 | GCC_PREPROCESSOR_DEFINITIONS = (
412 | "DEBUG=1",
413 | "$(inherited)",
414 | );
415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
417 | GCC_WARN_UNDECLARED_SELECTOR = YES;
418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
419 | GCC_WARN_UNUSED_FUNCTION = YES;
420 | GCC_WARN_UNUSED_VARIABLE = YES;
421 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
422 | MTL_ENABLE_DEBUG_INFO = YES;
423 | ONLY_ACTIVE_ARCH = YES;
424 | SDKROOT = iphoneos;
425 | TARGETED_DEVICE_FAMILY = "1,2";
426 | };
427 | name = Debug;
428 | };
429 | 97C147041CF9000F007C117D /* Release */ = {
430 | isa = XCBuildConfiguration;
431 | buildSettings = {
432 | ALWAYS_SEARCH_USER_PATHS = NO;
433 | CLANG_ANALYZER_NONNULL = YES;
434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
435 | CLANG_CXX_LIBRARY = "libc++";
436 | CLANG_ENABLE_MODULES = YES;
437 | CLANG_ENABLE_OBJC_ARC = YES;
438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
439 | CLANG_WARN_BOOL_CONVERSION = YES;
440 | CLANG_WARN_COMMA = YES;
441 | CLANG_WARN_CONSTANT_CONVERSION = YES;
442 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
443 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
444 | CLANG_WARN_EMPTY_BODY = YES;
445 | CLANG_WARN_ENUM_CONVERSION = YES;
446 | CLANG_WARN_INFINITE_RECURSION = YES;
447 | CLANG_WARN_INT_CONVERSION = YES;
448 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
449 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
453 | CLANG_WARN_STRICT_PROTOTYPES = YES;
454 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
455 | CLANG_WARN_UNREACHABLE_CODE = YES;
456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
458 | COPY_PHASE_STRIP = NO;
459 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
460 | ENABLE_NS_ASSERTIONS = NO;
461 | ENABLE_STRICT_OBJC_MSGSEND = YES;
462 | GCC_C_LANGUAGE_STANDARD = gnu99;
463 | GCC_NO_COMMON_BLOCKS = YES;
464 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
465 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
466 | GCC_WARN_UNDECLARED_SELECTOR = YES;
467 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
468 | GCC_WARN_UNUSED_FUNCTION = YES;
469 | GCC_WARN_UNUSED_VARIABLE = YES;
470 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
471 | MTL_ENABLE_DEBUG_INFO = NO;
472 | SDKROOT = iphoneos;
473 | SUPPORTED_PLATFORMS = iphoneos;
474 | SWIFT_COMPILATION_MODE = wholemodule;
475 | SWIFT_OPTIMIZATION_LEVEL = "-O";
476 | TARGETED_DEVICE_FAMILY = "1,2";
477 | VALIDATE_PRODUCT = YES;
478 | };
479 | name = Release;
480 | };
481 | 97C147061CF9000F007C117D /* Debug */ = {
482 | isa = XCBuildConfiguration;
483 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
484 | buildSettings = {
485 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
486 | CLANG_ENABLE_MODULES = YES;
487 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
488 | DEVELOPMENT_TEAM = A68U686RLD;
489 | ENABLE_BITCODE = NO;
490 | INFOPLIST_FILE = Runner/Info.plist;
491 | LD_RUNPATH_SEARCH_PATHS = (
492 | "$(inherited)",
493 | "@executable_path/Frameworks",
494 | );
495 | PRODUCT_BUNDLE_IDENTIFIER = com.example.googleMapsExample;
496 | PRODUCT_NAME = "$(TARGET_NAME)";
497 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
498 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
499 | SWIFT_VERSION = 5.0;
500 | VERSIONING_SYSTEM = "apple-generic";
501 | };
502 | name = Debug;
503 | };
504 | 97C147071CF9000F007C117D /* Release */ = {
505 | isa = XCBuildConfiguration;
506 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
507 | buildSettings = {
508 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
509 | CLANG_ENABLE_MODULES = YES;
510 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
511 | DEVELOPMENT_TEAM = A68U686RLD;
512 | ENABLE_BITCODE = NO;
513 | INFOPLIST_FILE = Runner/Info.plist;
514 | LD_RUNPATH_SEARCH_PATHS = (
515 | "$(inherited)",
516 | "@executable_path/Frameworks",
517 | );
518 | PRODUCT_BUNDLE_IDENTIFIER = com.example.googleMapsExample;
519 | PRODUCT_NAME = "$(TARGET_NAME)";
520 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
521 | SWIFT_VERSION = 5.0;
522 | VERSIONING_SYSTEM = "apple-generic";
523 | };
524 | name = Release;
525 | };
526 | /* End XCBuildConfiguration section */
527 |
528 | /* Begin XCConfigurationList section */
529 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
530 | isa = XCConfigurationList;
531 | buildConfigurations = (
532 | 97C147031CF9000F007C117D /* Debug */,
533 | 97C147041CF9000F007C117D /* Release */,
534 | 249021D3217E4FDB00AE95B9 /* Profile */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | defaultConfigurationName = Release;
538 | };
539 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
540 | isa = XCConfigurationList;
541 | buildConfigurations = (
542 | 97C147061CF9000F007C117D /* Debug */,
543 | 97C147071CF9000F007C117D /* Release */,
544 | 249021D4217E4FDB00AE95B9 /* Profile */,
545 | );
546 | defaultConfigurationIsVisible = 0;
547 | defaultConfigurationName = Release;
548 | };
549 | /* End XCConfigurationList section */
550 | };
551 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
552 | }
553 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import GoogleMaps
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GMSServices.provideAPIKey("AIzaSyCfXnfJAD4JnbM5JjF8zRD4HxW_0cc1MLU")
12 | GeneratedPluginRegistrant.register(with: self)
13 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Google Maps Example
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | google_maps_example
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_maps_flutter/google_maps_flutter.dart';
3 | import 'package:custom_info_window/custom_info_window.dart';
4 |
5 | import 'models/map_style.dart';
6 | import 'pages/find_friends.dart';
7 | import 'pages/map_circles.dart';
8 | void main() {
9 | runApp(const MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | const MyApp({Key? key}) : super(key: key);
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | title: 'Google Maps Example',
18 | debugShowCheckedModeBanner: false,
19 | theme: ThemeData(
20 | primarySwatch: Colors.blue,
21 | ),
22 | home: const FindFriends(),
23 | );
24 | }
25 | }
26 |
27 | class HomePage extends StatefulWidget {
28 | const HomePage({Key? key}) : super(key: key);
29 |
30 | @override
31 | State createState() => _HomePageState();
32 | }
33 |
34 | class _HomePageState extends State {
35 | GoogleMapController? _controller;
36 |
37 | static const CameraPosition _kGooglePlex = CameraPosition(
38 | target: LatLng(0.347596, 32.582520),
39 | zoom: 14.4746,
40 | );
41 |
42 | final Map _markers = {};
43 | Map circles = {};
44 |
45 | CircleId? selectedCircle;
46 | final CustomInfoWindowController _customInfoWindowController =
47 | CustomInfoWindowController();
48 |
49 | final List _mapThemes = [
50 | {
51 | 'name': 'Standard',
52 | 'style': MapStyle().dark,
53 | 'image':
54 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:labels%7Cvisibility:off&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.neighborhood%7Cvisibility:off&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
55 | },
56 | {
57 | 'name': 'Sliver',
58 | 'style': MapStyle().sliver,
59 | 'image':
60 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:geometry%7Ccolor:0xf5f5f5&style=element:labels%7Cvisibility:off&style=element:labels.icon%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x616161&style=element:labels.text.stroke%7Ccolor:0xf5f5f5&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.land_parcel%7Celement:labels.text.fill%7Ccolor:0xbdbdbd&style=feature:administrative.neighborhood%7Cvisibility:off&style=feature:poi%7Celement:geometry%7Ccolor:0xeeeeee&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:poi.park%7Celement:geometry%7Ccolor:0xe5e5e5&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x9e9e9e&style=feature:road%7Celement:geometry%7Ccolor:0xffffff&style=feature:road.arterial%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:road.highway%7Celement:geometry%7Ccolor:0xdadada&style=feature:road.highway%7Celement:labels.text.fill%7Ccolor:0x616161&style=feature:road.local%7Celement:labels.text.fill%7Ccolor:0x9e9e9e&style=feature:transit.line%7Celement:geometry%7Ccolor:0xe5e5e5&style=feature:transit.station%7Celement:geometry%7Ccolor:0xeeeeee&style=feature:water%7Celement:geometry%7Ccolor:0xc9c9c9&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x9e9e9e&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
61 | },
62 | {
63 | 'name': 'Retro',
64 | 'style': MapStyle().retro,
65 | 'image':
66 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:geometry%7Ccolor:0xebe3cd&style=element:labels%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x523735&style=element:labels.text.stroke%7Ccolor:0xf5f1e6&style=feature:administrative%7Celement:geometry.stroke%7Ccolor:0xc9b2a6&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.land_parcel%7Celement:geometry.stroke%7Ccolor:0xdcd2be&style=feature:administrative.land_parcel%7Celement:labels.text.fill%7Ccolor:0xae9e90&style=feature:administrative.neighborhood%7Cvisibility:off&style=feature:landscape.natural%7Celement:geometry%7Ccolor:0xdfd2ae&style=feature:poi%7Celement:geometry%7Ccolor:0xdfd2ae&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0x93817c&style=feature:poi.park%7Celement:geometry.fill%7Ccolor:0xa5b076&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x447530&style=feature:road%7Celement:geometry%7Ccolor:0xf5f1e6&style=feature:road.arterial%7Celement:geometry%7Ccolor:0xfdfcf8&style=feature:road.highway%7Celement:geometry%7Ccolor:0xf8c967&style=feature:road.highway%7Celement:geometry.stroke%7Ccolor:0xe9bc62&style=feature:road.highway.controlled_access%7Celement:geometry%7Ccolor:0xe98d58&style=feature:road.highway.controlled_access%7Celement:geometry.stroke%7Ccolor:0xdb8555&style=feature:road.local%7Celement:labels.text.fill%7Ccolor:0x806b63&style=feature:transit.line%7Celement:geometry%7Ccolor:0xdfd2ae&style=feature:transit.line%7Celement:labels.text.fill%7Ccolor:0x8f7d77&style=feature:transit.line%7Celement:labels.text.stroke%7Ccolor:0xebe3cd&style=feature:transit.station%7Celement:geometry%7Ccolor:0xdfd2ae&style=feature:water%7Celement:geometry.fill%7Ccolor:0xb9d3c2&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x92998d&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
67 | },
68 | {
69 | 'name': 'Dark',
70 | 'style': MapStyle().dark,
71 | 'image':
72 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:geometry%7Ccolor:0x212121&style=element:labels%7Cvisibility:off&style=element:labels.icon%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x757575&style=element:labels.text.stroke%7Ccolor:0x212121&style=feature:administrative%7Celement:geometry%7Ccolor:0x757575&style=feature:administrative.country%7Celement:labels.text.fill%7Ccolor:0x9e9e9e&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.locality%7Celement:labels.text.fill%7Ccolor:0xbdbdbd&style=feature:administrative.neighborhood%7Cvisibility:off&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:poi.park%7Celement:geometry%7Ccolor:0x181818&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x616161&style=feature:poi.park%7Celement:labels.text.stroke%7Ccolor:0x1b1b1b&style=feature:road%7Celement:geometry.fill%7Ccolor:0x2c2c2c&style=feature:road%7Celement:labels.text.fill%7Ccolor:0x8a8a8a&style=feature:road.arterial%7Celement:geometry%7Ccolor:0x373737&style=feature:road.highway%7Celement:geometry%7Ccolor:0x3c3c3c&style=feature:road.highway.controlled_access%7Celement:geometry%7Ccolor:0x4e4e4e&style=feature:road.local%7Celement:labels.text.fill%7Ccolor:0x616161&style=feature:transit%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:water%7Celement:geometry%7Ccolor:0x000000&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x3d3d3d&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
73 | },
74 | {
75 | 'name': 'Night',
76 | 'style': MapStyle().night,
77 | 'image':
78 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:geometry%7Ccolor:0x242f3e&style=element:labels%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x746855&style=element:labels.text.stroke%7Ccolor:0x242f3e&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.locality%7Celement:labels.text.fill%7Ccolor:0xd59563&style=feature:administrative.neighborhood%7Cvisibility:off&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0xd59563&style=feature:poi.park%7Celement:geometry%7Ccolor:0x263c3f&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x6b9a76&style=feature:road%7Celement:geometry%7Ccolor:0x38414e&style=feature:road%7Celement:geometry.stroke%7Ccolor:0x212a37&style=feature:road%7Celement:labels.text.fill%7Ccolor:0x9ca5b3&style=feature:road.highway%7Celement:geometry%7Ccolor:0x746855&style=feature:road.highway%7Celement:geometry.stroke%7Ccolor:0x1f2835&style=feature:road.highway%7Celement:labels.text.fill%7Ccolor:0xf3d19c&style=feature:transit%7Celement:geometry%7Ccolor:0x2f3948&style=feature:transit.station%7Celement:labels.text.fill%7Ccolor:0xd59563&style=feature:water%7Celement:geometry%7Ccolor:0x17263c&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x515c6d&style=feature:water%7Celement:labels.text.stroke%7Ccolor:0x17263c&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
79 | },
80 | {
81 | 'name': 'Aubergine',
82 | 'style': MapStyle().aubergine,
83 | 'image':
84 | 'https://maps.googleapis.com/maps/api/staticmap?center=-33.9775,151.036&zoom=13&format=png&maptype=roadmap&style=element:geometry%7Ccolor:0x1d2c4d&style=element:labels%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x8ec3b9&style=element:labels.text.stroke%7Ccolor:0x1a3646&style=feature:administrative.country%7Celement:geometry.stroke%7Ccolor:0x4b6878&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.land_parcel%7Celement:labels.text.fill%7Ccolor:0x64779e&style=feature:administrative.neighborhood%7Cvisibility:off&style=feature:administrative.province%7Celement:geometry.stroke%7Ccolor:0x4b6878&style=feature:landscape.man_made%7Celement:geometry.stroke%7Ccolor:0x334e87&style=feature:landscape.natural%7Celement:geometry%7Ccolor:0x023e58&style=feature:poi%7Celement:geometry%7Ccolor:0x283d6a&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0x6f9ba5&style=feature:poi%7Celement:labels.text.stroke%7Ccolor:0x1d2c4d&style=feature:poi.park%7Celement:geometry.fill%7Ccolor:0x023e58&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x3C7680&style=feature:road%7Celement:geometry%7Ccolor:0x304a7d&style=feature:road%7Celement:labels.text.fill%7Ccolor:0x98a5be&style=feature:road%7Celement:labels.text.stroke%7Ccolor:0x1d2c4d&style=feature:road.highway%7Celement:geometry%7Ccolor:0x2c6675&style=feature:road.highway%7Celement:geometry.stroke%7Ccolor:0x255763&style=feature:road.highway%7Celement:labels.text.fill%7Ccolor:0xb0d5ce&style=feature:road.highway%7Celement:labels.text.stroke%7Ccolor:0x023e58&style=feature:transit%7Celement:labels.text.fill%7Ccolor:0x98a5be&style=feature:transit%7Celement:labels.text.stroke%7Ccolor:0x1d2c4d&style=feature:transit.line%7Celement:geometry.fill%7Ccolor:0x283d6a&style=feature:transit.station%7Celement:geometry%7Ccolor:0x3a4762&style=feature:water%7Celement:geometry%7Ccolor:0x0e1626&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x4e6d70&size=164x132&key=AIzaSyDk4C4EBWgjuL1eBnJlu1J80WytEtSIags&scale=2'
85 | }
86 | ];
87 |
88 | @override
89 | void dispose() {
90 | _customInfoWindowController.dispose();
91 | super.dispose();
92 | }
93 |
94 | @override
95 | Widget build(BuildContext context) {
96 | return Scaffold(
97 | body: Stack(
98 | children: [
99 | GoogleMap(
100 | initialCameraPosition: _kGooglePlex,
101 | myLocationButtonEnabled: false,
102 | mapType: MapType.normal,
103 | zoomControlsEnabled: true,
104 | markers: _markers.values.toSet(),
105 | circles: circles.values.toSet(),
106 | onTap: (LatLng latLng){
107 | Marker marker = Marker(
108 | draggable: true,
109 | markerId: MarkerId(latLng.toString()),
110 | position: latLng,
111 | onTap: (){
112 | _customInfoWindowController.addInfoWindow!(
113 | Stack(
114 | children: [
115 | Container(
116 | padding: const EdgeInsets.all(15.0),
117 | decoration: BoxDecoration(
118 | borderRadius: BorderRadius.circular(15.0),
119 | color: Colors.white,
120 | ),
121 | child: Column(
122 | crossAxisAlignment: CrossAxisAlignment.start,
123 | children: [
124 | SizedBox(
125 | width: double.infinity,
126 | height: 130,
127 | child: ClipRRect(
128 | borderRadius: BorderRadius.circular(10.0),
129 | child: Image.network(
130 | 'https://images.unsplash.com/photo-1606089397043-89c1758008e0?ixid=MnwxMjA3fDB8MHx0b3BpYy1mZWVkfDEyMHw2c01WalRMU2tlUXx8ZW58MHx8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60',
131 | fit: BoxFit.cover,
132 | ),
133 | ),
134 | ),
135 | const SizedBox(height: 15,),
136 | const Text("Grand Teton National Park", style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14),),
137 | const SizedBox(height: 5,),
138 | Text("Grand Teton National Park on the east side of the Teton Range is renowned for great hiking trails with stunning views of the Teton Range.", style: TextStyle(color: Colors.grey.shade600, fontSize: 12),),
139 | const SizedBox(height: 8,),
140 | MaterialButton(
141 | onPressed: () {},
142 | elevation: 0,
143 | height: 40,
144 | minWidth: double.infinity,
145 | color: Colors.grey.shade200,
146 | shape: RoundedRectangleBorder(
147 | borderRadius: BorderRadius.circular(10.0),
148 | ),
149 | child: const Text("See details", style: TextStyle(color: Colors.black),),
150 | )
151 | ],
152 | ),
153 | ),
154 | Positioned(
155 | top: 5.0,
156 | left: 5.0,
157 | child: IconButton(
158 | icon: const Icon(
159 | Icons.close,
160 | color: Colors.white,
161 | ),
162 | onPressed: () {
163 | _customInfoWindowController.hideInfoWindow!();
164 | },
165 | ),
166 | ),
167 | ],
168 | ),
169 | latLng,
170 | );
171 | },
172 | );
173 |
174 | setState(() {
175 | _markers[latLng.toString()] = marker;
176 | },
177 |
178 |
179 | );
180 | },
181 | onCameraMove: (position) {
182 | _customInfoWindowController.onCameraMove!();
183 | },
184 | onMapCreated: (GoogleMapController controller) {
185 | _controller = controller;
186 | _customInfoWindowController.googleMapController = controller;
187 | }
188 | ),
189 | CustomInfoWindow(
190 | controller: _customInfoWindowController,
191 | height: MediaQuery.of(context).size.height * 0.35,
192 | width: MediaQuery.of(context).size.width * 0.8,
193 | offset: 60.0,
194 | ),
195 | Positioned(
196 | bottom: 40,
197 | right: 15,
198 | child: Container(
199 | width: 35,
200 | height: 105,
201 | decoration: BoxDecoration(
202 | borderRadius: BorderRadius.circular(10),
203 | color: Colors.white
204 | ),
205 | child: Column(
206 | mainAxisAlignment: MainAxisAlignment.start,
207 | children: [
208 | MaterialButton(
209 | onPressed: () {
210 | _controller?.animateCamera(CameraUpdate.zoomIn());
211 | },
212 | padding: const EdgeInsets.all(0),
213 | shape: RoundedRectangleBorder(
214 | borderRadius: BorderRadius.circular(10),
215 | ),
216 | child: const Icon(Icons.add, size: 25),
217 | ),
218 | const Divider(height: 5),
219 | MaterialButton(
220 | onPressed: () {
221 | _controller?.animateCamera(CameraUpdate.zoomOut());
222 | },
223 | padding: const EdgeInsets.all(0),
224 | shape: RoundedRectangleBorder(
225 | borderRadius: BorderRadius.circular(10),
226 | ),
227 | child: const Icon(Icons.remove, size: 25),
228 | )
229 | ],
230 | )
231 | ),
232 | ),
233 | Positioned(
234 | bottom: 160,
235 | right: 15,
236 | child: Container(
237 | width: 35,
238 | height: 50,
239 | decoration: BoxDecoration(
240 | borderRadius: BorderRadius.circular(10),
241 | color: Colors.white
242 | ),
243 | child: Column(
244 | mainAxisAlignment: MainAxisAlignment.start,
245 | children: [
246 | MaterialButton(
247 | onPressed: () {
248 | showModalBottomSheet(
249 | context: context,
250 | builder: (context) => Container(
251 | padding: const EdgeInsets.all(20),
252 | color: Colors.white,
253 | height: MediaQuery.of(context).size.height * 0.3,
254 | child: Column(
255 | crossAxisAlignment: CrossAxisAlignment.start,
256 | children: [
257 | const Text("Select Theme", style: TextStyle(color: Colors.black, fontWeight: FontWeight.w600, fontSize: 18),),
258 | const SizedBox(height: 20,),
259 | SizedBox(
260 | width: double.infinity,
261 | height: 100,
262 | child: ListView.builder(
263 | scrollDirection: Axis.horizontal,
264 | itemCount: _mapThemes.length,
265 | itemBuilder: (context, index) {
266 | return GestureDetector(
267 | onTap: () {
268 | _controller?.setMapStyle(_mapThemes[index]['style']);
269 | Navigator.pop(context);
270 | },
271 | child: Container(
272 | width: 100,
273 | margin: const EdgeInsets.only(right: 10),
274 | decoration: BoxDecoration(
275 | borderRadius: BorderRadius.circular(10),
276 | image: DecorationImage(
277 | fit: BoxFit.cover,
278 | image: NetworkImage(_mapThemes[index]['image']),
279 | )
280 | ),
281 | ),
282 | );
283 | }
284 | ),
285 | ),
286 | ],
287 | )
288 | ),
289 | );
290 | },
291 | padding: const EdgeInsets.all(0),
292 | shape: RoundedRectangleBorder(
293 | borderRadius: BorderRadius.circular(10),
294 | ),
295 | child: const Icon(Icons.layers_rounded, size: 25),
296 | ),
297 | ],
298 | )
299 | ),
300 | )
301 | ],
302 | ),
303 | );
304 | }
305 | }
306 |
--------------------------------------------------------------------------------
/lib/models/map_style.dart:
--------------------------------------------------------------------------------
1 | class MapStyle {
2 | final String aubergine = """
3 | [
4 | {
5 | "elementType": "geometry",
6 | "stylers": [
7 | {
8 | "color": "#1d2c4d"
9 | }
10 | ]
11 | },
12 | {
13 | "elementType": "labels.text.fill",
14 | "stylers": [
15 | {
16 | "color": "#8ec3b9"
17 | }
18 | ]
19 | },
20 | {
21 | "elementType": "labels.text.stroke",
22 | "stylers": [
23 | {
24 | "color": "#1a3646"
25 | }
26 | ]
27 | },
28 | {
29 | "featureType": "administrative.country",
30 | "elementType": "geometry.stroke",
31 | "stylers": [
32 | {
33 | "color": "#4b6878"
34 | }
35 | ]
36 | },
37 | {
38 | "featureType": "administrative.land_parcel",
39 | "elementType": "labels.text.fill",
40 | "stylers": [
41 | {
42 | "color": "#64779e"
43 | }
44 | ]
45 | },
46 | {
47 | "featureType": "administrative.province",
48 | "elementType": "geometry.stroke",
49 | "stylers": [
50 | {
51 | "color": "#4b6878"
52 | }
53 | ]
54 | },
55 | {
56 | "featureType": "landscape.man_made",
57 | "elementType": "geometry.stroke",
58 | "stylers": [
59 | {
60 | "color": "#334e87"
61 | }
62 | ]
63 | },
64 | {
65 | "featureType": "landscape.natural",
66 | "elementType": "geometry",
67 | "stylers": [
68 | {
69 | "color": "#023e58"
70 | }
71 | ]
72 | },
73 | {
74 | "featureType": "poi",
75 | "elementType": "geometry",
76 | "stylers": [
77 | {
78 | "color": "#283d6a"
79 | }
80 | ]
81 | },
82 | {
83 | "featureType": "poi",
84 | "elementType": "labels.text.fill",
85 | "stylers": [
86 | {
87 | "color": "#6f9ba5"
88 | }
89 | ]
90 | },
91 | {
92 | "featureType": "poi",
93 | "elementType": "labels.text.stroke",
94 | "stylers": [
95 | {
96 | "color": "#1d2c4d"
97 | }
98 | ]
99 | },
100 | {
101 | "featureType": "poi.park",
102 | "elementType": "geometry.fill",
103 | "stylers": [
104 | {
105 | "color": "#023e58"
106 | }
107 | ]
108 | },
109 | {
110 | "featureType": "poi.park",
111 | "elementType": "labels.text.fill",
112 | "stylers": [
113 | {
114 | "color": "#3C7680"
115 | }
116 | ]
117 | },
118 | {
119 | "featureType": "road",
120 | "elementType": "geometry",
121 | "stylers": [
122 | {
123 | "color": "#304a7d"
124 | }
125 | ]
126 | },
127 | {
128 | "featureType": "road",
129 | "elementType": "labels.text.fill",
130 | "stylers": [
131 | {
132 | "color": "#98a5be"
133 | }
134 | ]
135 | },
136 | {
137 | "featureType": "road",
138 | "elementType": "labels.text.stroke",
139 | "stylers": [
140 | {
141 | "color": "#1d2c4d"
142 | }
143 | ]
144 | },
145 | {
146 | "featureType": "road.highway",
147 | "elementType": "geometry",
148 | "stylers": [
149 | {
150 | "color": "#2c6675"
151 | }
152 | ]
153 | },
154 | {
155 | "featureType": "road.highway",
156 | "elementType": "geometry.stroke",
157 | "stylers": [
158 | {
159 | "color": "#255763"
160 | }
161 | ]
162 | },
163 | {
164 | "featureType": "road.highway",
165 | "elementType": "labels.text.fill",
166 | "stylers": [
167 | {
168 | "color": "#b0d5ce"
169 | }
170 | ]
171 | },
172 | {
173 | "featureType": "road.highway",
174 | "elementType": "labels.text.stroke",
175 | "stylers": [
176 | {
177 | "color": "#023e58"
178 | }
179 | ]
180 | },
181 | {
182 | "featureType": "transit",
183 | "elementType": "labels.text.fill",
184 | "stylers": [
185 | {
186 | "color": "#98a5be"
187 | }
188 | ]
189 | },
190 | {
191 | "featureType": "transit",
192 | "elementType": "labels.text.stroke",
193 | "stylers": [
194 | {
195 | "color": "#1d2c4d"
196 | }
197 | ]
198 | },
199 | {
200 | "featureType": "transit.line",
201 | "elementType": "geometry.fill",
202 | "stylers": [
203 | {
204 | "color": "#283d6a"
205 | }
206 | ]
207 | },
208 | {
209 | "featureType": "transit.station",
210 | "elementType": "geometry",
211 | "stylers": [
212 | {
213 | "color": "#3a4762"
214 | }
215 | ]
216 | },
217 | {
218 | "featureType": "water",
219 | "elementType": "geometry",
220 | "stylers": [
221 | {
222 | "color": "#0e1626"
223 | }
224 | ]
225 | },
226 | {
227 | "featureType": "water",
228 | "elementType": "labels.text.fill",
229 | "stylers": [
230 | {
231 | "color": "#4e6d70"
232 | }
233 | ]
234 | }
235 | ]""";
236 |
237 | final String sliver = """
238 | [
239 | {
240 | "elementType": "geometry",
241 | "stylers": [
242 | {
243 | "color": "#f5f5f5"
244 | }
245 | ]
246 | },
247 | {
248 | "elementType": "labels.icon",
249 | "stylers": [
250 | {
251 | "visibility": "off"
252 | }
253 | ]
254 | },
255 | {
256 | "elementType": "labels.text.fill",
257 | "stylers": [
258 | {
259 | "color": "#616161"
260 | }
261 | ]
262 | },
263 | {
264 | "elementType": "labels.text.stroke",
265 | "stylers": [
266 | {
267 | "color": "#f5f5f5"
268 | }
269 | ]
270 | },
271 | {
272 | "featureType": "administrative.land_parcel",
273 | "elementType": "labels.text.fill",
274 | "stylers": [
275 | {
276 | "color": "#bdbdbd"
277 | }
278 | ]
279 | },
280 | {
281 | "featureType": "poi",
282 | "elementType": "geometry",
283 | "stylers": [
284 | {
285 | "color": "#eeeeee"
286 | }
287 | ]
288 | },
289 | {
290 | "featureType": "poi",
291 | "elementType": "labels.text.fill",
292 | "stylers": [
293 | {
294 | "color": "#757575"
295 | }
296 | ]
297 | },
298 | {
299 | "featureType": "poi.park",
300 | "elementType": "geometry",
301 | "stylers": [
302 | {
303 | "color": "#e5e5e5"
304 | }
305 | ]
306 | },
307 | {
308 | "featureType": "poi.park",
309 | "elementType": "labels.text.fill",
310 | "stylers": [
311 | {
312 | "color": "#9e9e9e"
313 | }
314 | ]
315 | },
316 | {
317 | "featureType": "road",
318 | "elementType": "geometry",
319 | "stylers": [
320 | {
321 | "color": "#ffffff"
322 | }
323 | ]
324 | },
325 | {
326 | "featureType": "road.arterial",
327 | "elementType": "labels.text.fill",
328 | "stylers": [
329 | {
330 | "color": "#757575"
331 | }
332 | ]
333 | },
334 | {
335 | "featureType": "road.highway",
336 | "elementType": "geometry",
337 | "stylers": [
338 | {
339 | "color": "#dadada"
340 | }
341 | ]
342 | },
343 | {
344 | "featureType": "road.highway",
345 | "elementType": "labels.text.fill",
346 | "stylers": [
347 | {
348 | "color": "#616161"
349 | }
350 | ]
351 | },
352 | {
353 | "featureType": "road.local",
354 | "elementType": "labels.text.fill",
355 | "stylers": [
356 | {
357 | "color": "#9e9e9e"
358 | }
359 | ]
360 | },
361 | {
362 | "featureType": "transit.line",
363 | "elementType": "geometry",
364 | "stylers": [
365 | {
366 | "color": "#e5e5e5"
367 | }
368 | ]
369 | },
370 | {
371 | "featureType": "transit.station",
372 | "elementType": "geometry",
373 | "stylers": [
374 | {
375 | "color": "#eeeeee"
376 | }
377 | ]
378 | },
379 | {
380 | "featureType": "water",
381 | "elementType": "geometry",
382 | "stylers": [
383 | {
384 | "color": "#c9c9c9"
385 | }
386 | ]
387 | },
388 | {
389 | "featureType": "water",
390 | "elementType": "labels.text.fill",
391 | "stylers": [
392 | {
393 | "color": "#9e9e9e"
394 | }
395 | ]
396 | }
397 | ]""";
398 |
399 | final String retro = """
400 | [
401 | {
402 | "elementType": "geometry",
403 | "stylers": [
404 | {
405 | "color": "#ebe3cd"
406 | }
407 | ]
408 | },
409 | {
410 | "elementType": "labels.text.fill",
411 | "stylers": [
412 | {
413 | "color": "#523735"
414 | }
415 | ]
416 | },
417 | {
418 | "elementType": "labels.text.stroke",
419 | "stylers": [
420 | {
421 | "color": "#f5f1e6"
422 | }
423 | ]
424 | },
425 | {
426 | "featureType": "administrative",
427 | "elementType": "geometry.stroke",
428 | "stylers": [
429 | {
430 | "color": "#c9b2a6"
431 | }
432 | ]
433 | },
434 | {
435 | "featureType": "administrative.land_parcel",
436 | "elementType": "geometry.stroke",
437 | "stylers": [
438 | {
439 | "color": "#dcd2be"
440 | }
441 | ]
442 | },
443 | {
444 | "featureType": "administrative.land_parcel",
445 | "elementType": "labels.text.fill",
446 | "stylers": [
447 | {
448 | "color": "#ae9e90"
449 | }
450 | ]
451 | },
452 | {
453 | "featureType": "landscape.natural",
454 | "elementType": "geometry",
455 | "stylers": [
456 | {
457 | "color": "#dfd2ae"
458 | }
459 | ]
460 | },
461 | {
462 | "featureType": "poi",
463 | "elementType": "geometry",
464 | "stylers": [
465 | {
466 | "color": "#dfd2ae"
467 | }
468 | ]
469 | },
470 | {
471 | "featureType": "poi",
472 | "elementType": "labels.text.fill",
473 | "stylers": [
474 | {
475 | "color": "#93817c"
476 | }
477 | ]
478 | },
479 | {
480 | "featureType": "poi.park",
481 | "elementType": "geometry.fill",
482 | "stylers": [
483 | {
484 | "color": "#a5b076"
485 | }
486 | ]
487 | },
488 | {
489 | "featureType": "poi.park",
490 | "elementType": "labels.text.fill",
491 | "stylers": [
492 | {
493 | "color": "#447530"
494 | }
495 | ]
496 | },
497 | {
498 | "featureType": "road",
499 | "elementType": "geometry",
500 | "stylers": [
501 | {
502 | "color": "#f5f1e6"
503 | }
504 | ]
505 | },
506 | {
507 | "featureType": "road.arterial",
508 | "elementType": "geometry",
509 | "stylers": [
510 | {
511 | "color": "#fdfcf8"
512 | }
513 | ]
514 | },
515 | {
516 | "featureType": "road.highway",
517 | "elementType": "geometry",
518 | "stylers": [
519 | {
520 | "color": "#f8c967"
521 | }
522 | ]
523 | },
524 | {
525 | "featureType": "road.highway",
526 | "elementType": "geometry.stroke",
527 | "stylers": [
528 | {
529 | "color": "#e9bc62"
530 | }
531 | ]
532 | },
533 | {
534 | "featureType": "road.highway.controlled_access",
535 | "elementType": "geometry",
536 | "stylers": [
537 | {
538 | "color": "#e98d58"
539 | }
540 | ]
541 | },
542 | {
543 | "featureType": "road.highway.controlled_access",
544 | "elementType": "geometry.stroke",
545 | "stylers": [
546 | {
547 | "color": "#db8555"
548 | }
549 | ]
550 | },
551 | {
552 | "featureType": "road.local",
553 | "elementType": "labels.text.fill",
554 | "stylers": [
555 | {
556 | "color": "#806b63"
557 | }
558 | ]
559 | },
560 | {
561 | "featureType": "transit.line",
562 | "elementType": "geometry",
563 | "stylers": [
564 | {
565 | "color": "#dfd2ae"
566 | }
567 | ]
568 | },
569 | {
570 | "featureType": "transit.line",
571 | "elementType": "labels.text.fill",
572 | "stylers": [
573 | {
574 | "color": "#8f7d77"
575 | }
576 | ]
577 | },
578 | {
579 | "featureType": "transit.line",
580 | "elementType": "labels.text.stroke",
581 | "stylers": [
582 | {
583 | "color": "#ebe3cd"
584 | }
585 | ]
586 | },
587 | {
588 | "featureType": "transit.station",
589 | "elementType": "geometry",
590 | "stylers": [
591 | {
592 | "color": "#dfd2ae"
593 | }
594 | ]
595 | },
596 | {
597 | "featureType": "water",
598 | "elementType": "geometry.fill",
599 | "stylers": [
600 | {
601 | "color": "#b9d3c2"
602 | }
603 | ]
604 | },
605 | {
606 | "featureType": "water",
607 | "elementType": "labels.text.fill",
608 | "stylers": [
609 | {
610 | "color": "#92998d"
611 | }
612 | ]
613 | }
614 | ]""";
615 |
616 | final String dark = """
617 | [
618 | {
619 | "elementType": "geometry",
620 | "stylers": [
621 | {
622 | "color": "#212121"
623 | }
624 | ]
625 | },
626 | {
627 | "elementType": "labels.icon",
628 | "stylers": [
629 | {
630 | "visibility": "off"
631 | }
632 | ]
633 | },
634 | {
635 | "elementType": "labels.text.fill",
636 | "stylers": [
637 | {
638 | "color": "#757575"
639 | }
640 | ]
641 | },
642 | {
643 | "elementType": "labels.text.stroke",
644 | "stylers": [
645 | {
646 | "color": "#212121"
647 | }
648 | ]
649 | },
650 | {
651 | "featureType": "administrative",
652 | "elementType": "geometry",
653 | "stylers": [
654 | {
655 | "color": "#757575"
656 | }
657 | ]
658 | },
659 | {
660 | "featureType": "administrative.country",
661 | "elementType": "labels.text.fill",
662 | "stylers": [
663 | {
664 | "color": "#9e9e9e"
665 | }
666 | ]
667 | },
668 | {
669 | "featureType": "administrative.land_parcel",
670 | "stylers": [
671 | {
672 | "visibility": "off"
673 | }
674 | ]
675 | },
676 | {
677 | "featureType": "administrative.locality",
678 | "elementType": "labels.text.fill",
679 | "stylers": [
680 | {
681 | "color": "#bdbdbd"
682 | }
683 | ]
684 | },
685 | {
686 | "featureType": "poi",
687 | "elementType": "labels.text.fill",
688 | "stylers": [
689 | {
690 | "color": "#757575"
691 | }
692 | ]
693 | },
694 | {
695 | "featureType": "poi.park",
696 | "elementType": "geometry",
697 | "stylers": [
698 | {
699 | "color": "#181818"
700 | }
701 | ]
702 | },
703 | {
704 | "featureType": "poi.park",
705 | "elementType": "labels.text.fill",
706 | "stylers": [
707 | {
708 | "color": "#616161"
709 | }
710 | ]
711 | },
712 | {
713 | "featureType": "poi.park",
714 | "elementType": "labels.text.stroke",
715 | "stylers": [
716 | {
717 | "color": "#1b1b1b"
718 | }
719 | ]
720 | },
721 | {
722 | "featureType": "road",
723 | "elementType": "geometry.fill",
724 | "stylers": [
725 | {
726 | "color": "#2c2c2c"
727 | }
728 | ]
729 | },
730 | {
731 | "featureType": "road",
732 | "elementType": "labels.text.fill",
733 | "stylers": [
734 | {
735 | "color": "#8a8a8a"
736 | }
737 | ]
738 | },
739 | {
740 | "featureType": "road.arterial",
741 | "elementType": "geometry",
742 | "stylers": [
743 | {
744 | "color": "#373737"
745 | }
746 | ]
747 | },
748 | {
749 | "featureType": "road.highway",
750 | "elementType": "geometry",
751 | "stylers": [
752 | {
753 | "color": "#3c3c3c"
754 | }
755 | ]
756 | },
757 | {
758 | "featureType": "road.highway.controlled_access",
759 | "elementType": "geometry",
760 | "stylers": [
761 | {
762 | "color": "#4e4e4e"
763 | }
764 | ]
765 | },
766 | {
767 | "featureType": "road.local",
768 | "elementType": "labels.text.fill",
769 | "stylers": [
770 | {
771 | "color": "#616161"
772 | }
773 | ]
774 | },
775 | {
776 | "featureType": "transit",
777 | "elementType": "labels.text.fill",
778 | "stylers": [
779 | {
780 | "color": "#757575"
781 | }
782 | ]
783 | },
784 | {
785 | "featureType": "water",
786 | "elementType": "geometry",
787 | "stylers": [
788 | {
789 | "color": "#000000"
790 | }
791 | ]
792 | },
793 | {
794 | "featureType": "water",
795 | "elementType": "labels.text.fill",
796 | "stylers": [
797 | {
798 | "color": "#3d3d3d"
799 | }
800 | ]
801 | }
802 | ]""";
803 |
804 | final String night = """
805 | [
806 | {
807 | "elementType": "geometry",
808 | "stylers": [
809 | {
810 | "color": "#242f3e"
811 | }
812 | ]
813 | },
814 | {
815 | "elementType": "labels.text.fill",
816 | "stylers": [
817 | {
818 | "color": "#746855"
819 | }
820 | ]
821 | },
822 | {
823 | "elementType": "labels.text.stroke",
824 | "stylers": [
825 | {
826 | "color": "#242f3e"
827 | }
828 | ]
829 | },
830 | {
831 | "featureType": "administrative.locality",
832 | "elementType": "labels.text.fill",
833 | "stylers": [
834 | {
835 | "color": "#d59563"
836 | }
837 | ]
838 | },
839 | {
840 | "featureType": "poi",
841 | "elementType": "labels.text.fill",
842 | "stylers": [
843 | {
844 | "color": "#d59563"
845 | }
846 | ]
847 | },
848 | {
849 | "featureType": "poi.park",
850 | "elementType": "geometry",
851 | "stylers": [
852 | {
853 | "color": "#263c3f"
854 | }
855 | ]
856 | },
857 | {
858 | "featureType": "poi.park",
859 | "elementType": "labels.text.fill",
860 | "stylers": [
861 | {
862 | "color": "#6b9a76"
863 | }
864 | ]
865 | },
866 | {
867 | "featureType": "road",
868 | "elementType": "geometry",
869 | "stylers": [
870 | {
871 | "color": "#38414e"
872 | }
873 | ]
874 | },
875 | {
876 | "featureType": "road",
877 | "elementType": "geometry.stroke",
878 | "stylers": [
879 | {
880 | "color": "#212a37"
881 | }
882 | ]
883 | },
884 | {
885 | "featureType": "road",
886 | "elementType": "labels.text.fill",
887 | "stylers": [
888 | {
889 | "color": "#9ca5b3"
890 | }
891 | ]
892 | },
893 | {
894 | "featureType": "road.highway",
895 | "elementType": "geometry",
896 | "stylers": [
897 | {
898 | "color": "#746855"
899 | }
900 | ]
901 | },
902 | {
903 | "featureType": "road.highway",
904 | "elementType": "geometry.stroke",
905 | "stylers": [
906 | {
907 | "color": "#1f2835"
908 | }
909 | ]
910 | },
911 | {
912 | "featureType": "road.highway",
913 | "elementType": "labels.text.fill",
914 | "stylers": [
915 | {
916 | "color": "#f3d19c"
917 | }
918 | ]
919 | },
920 | {
921 | "featureType": "transit",
922 | "elementType": "geometry",
923 | "stylers": [
924 | {
925 | "color": "#2f3948"
926 | }
927 | ]
928 | },
929 | {
930 | "featureType": "transit.station",
931 | "elementType": "labels.text.fill",
932 | "stylers": [
933 | {
934 | "color": "#d59563"
935 | }
936 | ]
937 | },
938 | {
939 | "featureType": "water",
940 | "elementType": "geometry",
941 | "stylers": [
942 | {
943 | "color": "#17263c"
944 | }
945 | ]
946 | },
947 | {
948 | "featureType": "water",
949 | "elementType": "labels.text.fill",
950 | "stylers": [
951 | {
952 | "color": "#515c6d"
953 | }
954 | ]
955 | },
956 | {
957 | "featureType": "water",
958 | "elementType": "labels.text.stroke",
959 | "stylers": [
960 | {
961 | "color": "#17263c"
962 | }
963 | ]
964 | }
965 | ]""";
966 | }
--------------------------------------------------------------------------------
/lib/pages/find_friends.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:typed_data';
3 | import 'dart:ui';
4 |
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter/services.dart';
7 | import 'package:google_maps_example/models/map_style.dart';
8 | import 'package:google_maps_flutter/google_maps_flutter.dart';
9 |
10 | class FindFriends extends StatefulWidget {
11 | const FindFriends({ Key? key }) : super(key: key);
12 |
13 | @override
14 | _FindFriendsState createState() => _FindFriendsState();
15 | }
16 |
17 | class _FindFriendsState extends State {
18 | static const CameraPosition _kGooglePlex = CameraPosition(
19 | target: LatLng(0.347596, 32.582520),
20 | zoom: 14.4746,
21 | );
22 |
23 | final Set _markers = {};
24 | late GoogleMapController _controller;
25 |
26 | final List _contacts = [
27 | {
28 | "name": "Me",
29 | "position": const LatLng(37.42796133580664, -122.085749655962),
30 | "marker": 'assets/markers/marker-1.png',
31 | "image": 'assets/images/avatar-1.png',
32 | },
33 | {
34 | "name": "Samantha",
35 | "position": const LatLng(37.42484642575639, -122.08309359848501),
36 | "marker": 'assets/markers/marker-2.png',
37 | "image": 'assets/images/avatar-2.png',
38 | },
39 | {
40 | "name": "Malte",
41 | "position": const LatLng(37.42381625902441, -122.0928531512618),
42 | "marker": 'assets/markers/marker-3.png',
43 | "image": 'assets/images/avatar-3.png',
44 | },
45 | {
46 | "name": "Julia",
47 | "position": const LatLng(37.41994095849639, -122.08159055560827),
48 | "marker": 'assets/markers/marker-4.png',
49 | "image": 'assets/images/avatar-4.png',
50 | },
51 | {
52 | "name": "Tim",
53 | "position": const LatLng(37.413175077529935, -122.10101041942836),
54 | "marker": 'assets/markers/marker-5.png',
55 | "image": 'assets/images/avatar-5.png',
56 | },
57 | {
58 | "name": "Sara",
59 | "position": const LatLng(37.419013242401576, -122.11134664714336),
60 | "marker": 'assets/markers/marker-6.png',
61 | "image": 'assets/images/avatar-6.png',
62 | },
63 | {
64 | "name": "Ronaldo",
65 | "position": const LatLng(37.40260962243491, -122.0976958796382),
66 | "marker": 'assets/markers/marker-7.png',
67 | "image": 'assets/images/avatar-7.png',
68 | },
69 | ];
70 |
71 | @override
72 | void initState() {
73 | super.initState();
74 | }
75 |
76 | @override
77 | Widget build(BuildContext context) {
78 | createMarkers(context);
79 |
80 | return Scaffold(
81 | body: Stack(
82 | children: [
83 | GoogleMap(
84 | initialCameraPosition: _kGooglePlex,
85 | markers: _markers,
86 | myLocationButtonEnabled: false,
87 | onMapCreated: (GoogleMapController controller) {
88 | _controller = controller;
89 | controller.setMapStyle(MapStyle().aubergine);
90 | },
91 | ),
92 | Positioned(
93 | bottom: 50,
94 | left: 20,
95 | right: 20,
96 | child: Container(
97 | width: MediaQuery.of(context).size.width,
98 | height: 120,
99 | decoration: BoxDecoration(
100 | color: Colors.white,
101 | borderRadius: BorderRadius.circular(20)
102 | ),
103 | child: ListView.builder(
104 | scrollDirection: Axis.horizontal,
105 | itemCount: _contacts.length,
106 | itemBuilder: (context, index) {
107 | return GestureDetector(
108 | onTap: () {
109 | _controller.moveCamera(CameraUpdate.newLatLng(_contacts[index]["position"]));
110 | },
111 | child: Container(
112 | width: 100,
113 | height: 100,
114 | margin: const EdgeInsets.only(right: 10),
115 | child: Column(
116 | mainAxisAlignment: MainAxisAlignment.center,
117 | children: [
118 | Image.asset(_contacts[index]['image'], width: 60,),
119 | const SizedBox(height: 10,),
120 | Text(_contacts[index]["name"], style: const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),)
121 | ],
122 | ),
123 | ),
124 | );
125 | },
126 | )
127 | ),
128 | )
129 | ],
130 | )
131 | );
132 | }
133 |
134 | createMarkers(BuildContext context) {
135 | Marker marker;
136 |
137 | _contacts.forEach((contact) async {
138 | marker = Marker(
139 | markerId: MarkerId(contact['name']),
140 | position: contact['position'],
141 | icon: await _getAssetIcon(context, contact['marker']).then((value) => value),
142 | infoWindow: InfoWindow(
143 | title: contact['name'],
144 | snippet: 'Street 6 . 2min ago',
145 | ),
146 | );
147 |
148 | setState(() {
149 | _markers.add(marker);
150 | });
151 | });
152 | }
153 |
154 | Future _getAssetIcon(BuildContext context, String icon) async {
155 | final Completer bitmapIcon = Completer();
156 | final ImageConfiguration config = createLocalImageConfiguration(context, size: const Size(5, 5));
157 |
158 | AssetImage(icon)
159 | .resolve(config)
160 | .addListener(ImageStreamListener((ImageInfo image, bool sync) async {
161 | final ByteData? bytes = await image.image.toByteData(format: ImageByteFormat.png);
162 | final BitmapDescriptor bitmap = BitmapDescriptor.fromBytes(bytes!.buffer.asUint8List());
163 | bitmapIcon.complete(bitmap);
164 | })
165 | );
166 |
167 | return await bitmapIcon.future;
168 | }
169 | }
--------------------------------------------------------------------------------
/lib/pages/map_circles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_maps_example/models/map_style.dart';
3 | import 'package:google_maps_flutter/google_maps_flutter.dart';
4 |
5 | class MapCircles extends StatefulWidget {
6 | const MapCircles({ Key? key }) : super(key: key);
7 |
8 | @override
9 | _MapCirclesState createState() => _MapCirclesState();
10 | }
11 |
12 | class _MapCirclesState extends State {
13 | GoogleMapController? _controller;
14 | final Set _circles = {};
15 |
16 | static const CameraPosition _kGooglePlex = CameraPosition(
17 | target: LatLng(0.347596, 32.582520),
18 | zoom: 14.4746,
19 | );
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return Scaffold(
24 | body: GoogleMap(
25 | initialCameraPosition: _kGooglePlex,
26 | circles: _circles,
27 | onLongPress: (LatLng latLng) {
28 | setState(() {
29 | _circles.add(Circle(
30 | circleId: const CircleId('red'),
31 | center: latLng,
32 | radius: 300,
33 | fillColor: Colors.red.shade500.withOpacity(.5),
34 | strokeColor: Colors.red.shade300.withOpacity(.7),
35 | strokeWidth: 5,
36 | ));
37 | });
38 | },
39 | onTap: (LatLng latLng) {
40 | _circles.add(Circle(
41 | consumeTapEvents: true,
42 | circleId: const CircleId('blue'),
43 | center: latLng,
44 | radius: 500.0,
45 | fillColor: Colors.blue.shade500.withOpacity(.5),
46 | strokeColor: Colors.blue.shade700.withOpacity(.7),
47 | strokeWidth: 5,
48 | ));
49 |
50 | setState(() {
51 | _controller?.animateCamera(CameraUpdate.newLatLng(latLng));
52 | });
53 | },
54 | onMapCreated: (GoogleMapController controller) {
55 | _controller = controller;
56 | _controller!.setMapStyle(MapStyle().dark);
57 | },
58 | ),
59 | );
60 | }
61 | }
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.2"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.0"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.3.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.15.0"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.0.4"
53 | custom_info_window:
54 | dependency: "direct main"
55 | description:
56 | name: custom_info_window
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.1"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.2.0"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_lints:
73 | dependency: "direct main"
74 | description:
75 | name: flutter_lints
76 | url: "https://pub.dartlang.org"
77 | source: hosted
78 | version: "1.0.4"
79 | flutter_plugin_android_lifecycle:
80 | dependency: transitive
81 | description:
82 | name: flutter_plugin_android_lifecycle
83 | url: "https://pub.dartlang.org"
84 | source: hosted
85 | version: "2.0.5"
86 | flutter_test:
87 | dependency: "direct dev"
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | google_maps_flutter:
92 | dependency: "direct main"
93 | description:
94 | name: google_maps_flutter
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "2.1.1"
98 | google_maps_flutter_platform_interface:
99 | dependency: transitive
100 | description:
101 | name: google_maps_flutter_platform_interface
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "2.1.5"
105 | lints:
106 | dependency: transitive
107 | description:
108 | name: lints
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "1.0.1"
112 | matcher:
113 | dependency: transitive
114 | description:
115 | name: matcher
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "0.12.11"
119 | meta:
120 | dependency: transitive
121 | description:
122 | name: meta
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "1.7.0"
126 | path:
127 | dependency: transitive
128 | description:
129 | name: path
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "1.8.0"
133 | plugin_platform_interface:
134 | dependency: transitive
135 | description:
136 | name: plugin_platform_interface
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "2.1.2"
140 | sky_engine:
141 | dependency: transitive
142 | description: flutter
143 | source: sdk
144 | version: "0.0.99"
145 | source_span:
146 | dependency: transitive
147 | description:
148 | name: source_span
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.8.1"
152 | stack_trace:
153 | dependency: transitive
154 | description:
155 | name: stack_trace
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.10.0"
159 | stream_channel:
160 | dependency: transitive
161 | description:
162 | name: stream_channel
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "2.1.0"
166 | stream_transform:
167 | dependency: transitive
168 | description:
169 | name: stream_transform
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "2.0.0"
173 | string_scanner:
174 | dependency: transitive
175 | description:
176 | name: string_scanner
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "1.1.0"
180 | term_glyph:
181 | dependency: transitive
182 | description:
183 | name: term_glyph
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "1.2.0"
187 | test_api:
188 | dependency: transitive
189 | description:
190 | name: test_api
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "0.4.3"
194 | typed_data:
195 | dependency: transitive
196 | description:
197 | name: typed_data
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "1.3.0"
201 | vector_math:
202 | dependency: transitive
203 | description:
204 | name: vector_math
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "2.1.1"
208 | sdks:
209 | dart: ">=2.15.1 <3.0.0"
210 | flutter: ">=2.5.0"
211 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: google_maps_example
2 | description: A new Flutter project.
3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
4 | version: 1.0.0+1
5 |
6 | environment:
7 | sdk: ">=2.15.1 <3.0.0"
8 |
9 | # Dependencies specify other packages that your package needs in order to work.
10 | # To automatically upgrade your package dependencies to the latest versions
11 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
12 | # dependencies can be manually updated by changing the version numbers below to
13 | # the latest version available on pub.dev. To see which dependencies have newer
14 | # versions available, run `flutter pub outdated`.
15 | dependencies:
16 | flutter:
17 | sdk: flutter
18 | cupertino_icons: ^1.0.2
19 | flutter_lints: ^1.0.0
20 | google_maps_flutter: ^2.0.11
21 | custom_info_window: ^1.0.1
22 |
23 | dev_dependencies:
24 | flutter_test:
25 | sdk: flutter
26 |
27 | # The "flutter_lints" package below contains a set of recommended lints to
28 | # encourage good coding practices. The lint set provided by the package is
29 | # activated in the `analysis_options.yaml` file located at the root of your
30 | # package. See that file for information about deactivating specific lint
31 | # rules and activating additional ones.
32 |
33 | # For information on the generic Dart part of this file, see the
34 | # following page: https://dart.dev/tools/pub/pubspec
35 |
36 | # The following section is specific to Flutter.
37 | flutter:
38 |
39 | # The following line ensures that the Material Icons font is
40 | # included with your application, so that you can use the icons in
41 | # the material Icons class.
42 | uses-material-design: true
43 |
44 | # To add assets to your application, add an assets section, like this:
45 | assets:
46 | - assets/images/
47 | - assets/markers/
48 |
49 | # An image asset can refer to one or more resolution-specific "variants", see
50 | # https://flutter.dev/assets-and-images/#resolution-aware.
51 |
52 | # For details regarding adding assets from package dependencies, see
53 | # https://flutter.dev/assets-and-images/#from-packages
54 |
55 | # To add custom fonts to your application, add a fonts section here,
56 | # in this "flutter" section. Each entry in this list should have a
57 | # "family" key with the font family name, and a "fonts" key with a
58 | # list giving the asset and other descriptors for the font. For
59 | # example:
60 | # fonts:
61 | # - family: Schyler
62 | # fonts:
63 | # - asset: fonts/Schyler-Regular.ttf
64 | # - asset: fonts/Schyler-Italic.ttf
65 | # style: italic
66 | # - family: Trajan Pro
67 | # fonts:
68 | # - asset: fonts/TrajanPro.ttf
69 | # - asset: fonts/TrajanPro_Bold.ttf
70 | # weight: 700
71 | #
72 | # For details regarding fonts from package dependencies,
73 | # see https://flutter.dev/custom-fonts/#from-packages
74 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:google_maps_example/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isaacpitwa/flutter_google_maps/2f8e334eff70162b14e6ddcebec649ca9bd80725/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | google_maps_example
33 |
34 |
35 |
36 |
39 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "google_maps_example",
3 | "short_name": "google_maps_example",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------