├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── android ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── src │ └── main │ ├── AndroidManifest.xml │ └── kotlin │ └── mn │ └── khankhulgun │ └── flutter_map_arcgis │ └── FlutterMapArcgisPlugin.kt ├── example ├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── 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 ├── 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 │ └── RunnerTests │ │ └── RunnerTests.swift ├── lib │ └── main.dart ├── pubspec.yaml └── test │ └── widget_test.dart ├── ios ├── .gitignore ├── Assets │ └── .gitkeep ├── Classes │ ├── FlutterMapArcgisPlugin.h │ ├── FlutterMapArcgisPlugin.m │ └── SwiftFlutterMapArcgisPlugin.swift └── flutter_map_arcgis.podspec ├── lib ├── flutter_map_arcgis.dart ├── layers │ ├── feature_layer.dart │ └── feature_layer_options.dart └── utils │ └── util.dart ├── pubspec.yaml └── test └── flutter_map_arcgis_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | ### Android ### 2 | # Gradle files 3 | .gradle/ 4 | build/ 5 | 6 | # Local configuration file (sdk path, etc) 7 | local.properties 8 | pubspec.lock 9 | example/pubspec.lock 10 | .DS_Store 11 | 12 | # Log/OS Files 13 | *.log 14 | 15 | # Android Studio generated files and folders 16 | captures/ 17 | .externalNativeBuild/ 18 | .cxx/ 19 | *.apk 20 | output.json 21 | 22 | # IntelliJ 23 | *.iml 24 | .idea/ 25 | misc.xml 26 | deploymentTargetDropDown.xml 27 | render.experimental.xml 28 | 29 | # Keystore files 30 | *.jks 31 | *.keystore 32 | 33 | # Google Services (e.g. APIs or Firebase) 34 | google-services.json 35 | 36 | # Android Profiling 37 | *.hprof 38 | 39 | ### Android Patch ### 40 | gen-external-apklibs 41 | 42 | # Replacement of .externalNativeBuild directories introduced 43 | # with Android Studio 3.5. 44 | 45 | ### Flutter ### 46 | # Flutter/Dart/Pub related 47 | **/doc/api/ 48 | .dart_tool/ 49 | .flutter-plugins 50 | .flutter-plugins-dependencies 51 | .fvm/ 52 | .packages 53 | .pub-cache/ 54 | .pub/ 55 | coverage/ 56 | lib/generated_plugin_registrant.dart 57 | # For library packages, don’t commit the pubspec.lock file. 58 | # Regenerating the pubspec.lock file lets you test your package against the latest compatible versions of its dependencies. 59 | # See https://dart.dev/guides/libraries/private-files#pubspeclock 60 | #pubspec.lock 61 | 62 | # Android related 63 | **/android/**/gradle-wrapper.jar 64 | **/android/.gradle 65 | **/android/captures/ 66 | **/android/gradlew 67 | **/android/gradlew.bat 68 | **/android/key.properties 69 | **/android/local.properties 70 | **/android/**/GeneratedPluginRegistrant.java 71 | 72 | # iOS/XCode related 73 | **/ios/**/*.mode1v3 74 | **/ios/**/*.mode2v3 75 | **/ios/**/*.moved-aside 76 | **/ios/**/*.pbxuser 77 | **/ios/**/*.perspectivev3 78 | **/ios/**/*sync/ 79 | **/ios/**/.sconsign.dblite 80 | **/ios/**/.tags* 81 | **/ios/**/.vagrant/ 82 | **/ios/**/DerivedData/ 83 | **/ios/**/Icon? 84 | **/ios/**/Pods/ 85 | **/ios/**/.symlinks/ 86 | **/ios/**/profile 87 | **/ios/**/xcuserdata 88 | **/ios/.generated/ 89 | **/ios/Flutter/.last_build_id 90 | **/ios/Flutter/App.framework 91 | **/ios/Flutter/Flutter.framework 92 | **/ios/Flutter/Flutter.podspec 93 | **/ios/Flutter/Generated.xcconfig 94 | **/ios/Flutter/app.flx 95 | **/ios/Flutter/app.zip 96 | **/ios/Flutter/flutter_assets/ 97 | **/ios/Flutter/flutter_export_environment.sh 98 | **/ios/ServiceDefinitions.json 99 | **/ios/Runner/GeneratedPluginRegistrant.* 100 | 101 | # Exceptions to above rules. 102 | !**/ios/**/default.mode1v3 103 | !**/ios/**/default.mode2v3 104 | !**/ios/**/default.pbxuser 105 | !**/ios/**/default.perspectivev3 106 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 107 | 108 | # End of https://www.toptal.com/developers/gitignore/api/flutter,android -------------------------------------------------------------------------------- /.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: 27321ebbad34b0a3fafe99fac037102196d655ff 8 | channel: stable 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 2.0.6 2 | 3 | - Flutter map version up. support 6.1.0 4 | 5 | ## 2.0.5 6 | 7 | - Flutter map version up 8 | 9 | ## 2.0.4 10 | 11 | - isFilled option added to polygon 12 | 13 | ## 2.0.3 14 | 15 | - exceededTransferLimit set to true ArcGIS rest API 16 | 17 | ## 2.0.2 18 | 19 | - Point request caller improved 20 | 21 | ## 2.0.1 22 | 23 | - Polyline added, Flutter map version 2.1.1 24 | 25 | ## 2.0.0 26 | 27 | - Stable null safety release. 28 | 29 | ## 0.0.1 30 | 31 | * TODO: Describe initial release. 32 | 33 | ## 0.0.2 34 | 35 | * Polygon layer element on tap support 36 | 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Frank Zheng 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Map plugin for ArcGIS Esri 2 | 3 | # Currently support feature layer(point, polygon, polyline) 4 | We are working on more features 5 | 6 | A Dart implementation of Esri Leaflet for Flutter apps. 7 | This is a plugin for [flutter_map](https://github.com/johnpryan/flutter_map) package 8 | 9 | 10 | ## Usage 11 | 12 | Add flutter_map, dio and flutter_map_arcgis to your pubspec: 13 | 14 | ```yaml 15 | dependencies: 16 | flutter_map: any 17 | flutter_map_arcgis: any # or the latest version on Pub 18 | dio: any # or the latest version on Pub 19 | ``` 20 | 21 | Add it in you FlutterMap and configure it using `FeatureLayerOptions`. 22 | 23 | ```dart 24 | import 'package:flutter/material.dart'; 25 | import 'package:flutter_map_arcgis/flutter_map_arcgis.dart'; 26 | import 'package:flutter_map/flutter_map.dart'; 27 | import 'package:latlong2/latlong.dart'; 28 | 29 | void main() => runApp(MyApp()); 30 | 31 | class MyApp extends StatefulWidget { 32 | @override 33 | _MyAppState createState() => _MyAppState(); 34 | } 35 | 36 | class _MyAppState extends State { 37 | 38 | @override 39 | void initState() { 40 | super.initState(); 41 | } 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | return MaterialApp( 46 | home: Scaffold( 47 | appBar: AppBar(title: Text('ArcGIS')), 48 | body: Padding( 49 | padding: EdgeInsets.all(8.0), 50 | child: Column( 51 | children: [ 52 | Flexible( 53 | child: FlutterMap( 54 | options: MapOptions( 55 | // center: LatLng(39.7644863,-105.0199111), // line 56 | center: LatLng(35.611909, -82.440682), 57 | zoom: 14.0, 58 | 59 | 60 | ), 61 | children: [ 62 | TileLayer( 63 | urlTemplate: 64 | 'http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', 65 | subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], 66 | ), 67 | // FeatureLayer(FeatureLayerOptions("https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Congressional_Districts/FeatureServer/0", 68 | // "polygon", 69 | // onTap: (dynamic attributes, LatLng location) { 70 | // print(attributes); 71 | // }, 72 | // render: (dynamic attributes){ 73 | // return PolygonOptions( 74 | // borderColor: Colors.red, 75 | // color: Colors.black45, 76 | // borderStrokeWidth: 2, 77 | // isFilled:true 78 | // ); 79 | // }, 80 | // ),) 81 | FeatureLayer( 82 | FeatureLayerOptions( 83 | "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0", 84 | "point", 85 | render:(dynamic attributes){ 86 | // You can render by attribute 87 | return PointOptions( 88 | width: 30.0, 89 | height: 30.0, 90 | builder: const Icon(Icons.pin_drop), 91 | ); 92 | }, 93 | onTap: (attributes, LatLng location) { 94 | print(attributes); 95 | }, 96 | ) 97 | ), 98 | // FeatureLayer(FeatureLayerOptions( 99 | // "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Denver_Streets_Centerline/FeatureServer/0", 100 | // "polyline", 101 | // render:(dynamic attributes){ 102 | // // You can render by attribute 103 | // return PolygonLineOptions( 104 | // borderColor: Colors.red, 105 | // color: Colors.red, 106 | // borderStrokeWidth: 2 107 | // ); 108 | // }, 109 | // onTap: (attributes, LatLng location) { 110 | // print(attributes); 111 | // }, 112 | // )) 113 | 114 | ], 115 | ), 116 | ), 117 | ], 118 | ), 119 | ), 120 | ), 121 | ); 122 | } 123 | } 124 | 125 | 126 | ``` 127 | 128 | ### Run the example 129 | 130 | See the `example/` folder for a working example app. 131 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'mn.khankhulgun.flutter_map_arcgis' 2 | version '1.0-SNAPSHOT' 3 | 4 | buildscript { 5 | ext.kotlin_version = '1.6.10' 6 | repositories { 7 | google() 8 | mavenCentral() 9 | } 10 | 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:7.0.4' 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 14 | } 15 | } 16 | 17 | rootProject.allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | } 22 | } 23 | 24 | apply plugin: 'com.android.library' 25 | apply plugin: 'kotlin-android' 26 | 27 | android { 28 | compileSdkVersion 31 29 | 30 | sourceSets { 31 | main.java.srcDirs += 'src/main/kotlin' 32 | } 33 | defaultConfig { 34 | minSdkVersion 20 35 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 36 | } 37 | lintOptions { 38 | disable 'InvalidPackage' 39 | } 40 | } 41 | 42 | dependencies { 43 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 44 | } 45 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Mar 02 18:23:29 IST 2022 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'flutter_map_arcgis' 2 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/kotlin/mn/khankhulgun/flutter_map_arcgis/FlutterMapArcgisPlugin.kt: -------------------------------------------------------------------------------- 1 | package mn.khankhulgun.flutter_map_arcgis 2 | 3 | import androidx.annotation.NonNull 4 | import io.flutter.embedding.engine.plugins.FlutterPlugin 5 | import io.flutter.plugin.common.MethodCall 6 | import io.flutter.plugin.common.MethodChannel 7 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler 8 | import io.flutter.plugin.common.MethodChannel.Result 9 | 10 | /** FlutterMapArcgisPlugin */ 11 | class FlutterMapArcgisPlugin: FlutterPlugin, MethodCallHandler { 12 | override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { 13 | val channel = MethodChannel(flutterPluginBinding.binaryMessenger, "flutter_map_arcgis") 14 | channel.setMethodCallHandler(FlutterMapArcgisPlugin()) 15 | } 16 | 17 | override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { 18 | if (call.method == "getPlatformVersion") { 19 | result.success("Android ${android.os.Build.VERSION.RELEASE}") 20 | } else { 21 | result.notImplemented() 22 | } 23 | } 24 | 25 | override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) { 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /example/.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 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | -------------------------------------------------------------------------------- /example/.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: "b0366e0a3f089e15fd89c97604ab402fe26b724c" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c 17 | base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c 18 | - platform: ios 19 | create_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c 20 | base_revision: b0366e0a3f089e15fd89c97604ab402fe26b724c 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # flutter_map_arcgis_example 2 | 3 | Demonstrates how to use the flutter_map_arcgis plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/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 https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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.example" 47 | minSdkVersion 20 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 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/example/example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.example 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 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 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/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-7.2-all.zip 7 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.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 | target 'RunnerTests' do 36 | inherit! :search_paths 37 | end 38 | end 39 | 40 | post_install do |installer| 41 | installer.pods_project.targets.each do |target| 42 | flutter_additional_ios_build_settings(target) 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_map_arcgis (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `Flutter`) 8 | - flutter_map_arcgis (from `.symlinks/plugins/flutter_map_arcgis/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: Flutter 13 | flutter_map_arcgis: 14 | :path: ".symlinks/plugins/flutter_map_arcgis/ios" 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 18 | flutter_map_arcgis: 77120a3ecdc4c415923de1ed9ccb43a064e7da34 19 | 20 | PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189 21 | 22 | COCOAPODS: 1.14.3 23 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 492233310E8ABFAF3712471E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D16C0BBF0BCDC2711C934B3 /* Pods_Runner.framework */; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 18 | CBAA036F8A5CDEFD12B37971 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D32284FD3F60AF6593D4DD8 /* Pods_RunnerTests.framework */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 27 | remoteInfo = Runner; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXCopyFilesBuildPhase section */ 32 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 33 | isa = PBXCopyFilesBuildPhase; 34 | buildActionMask = 2147483647; 35 | dstPath = ""; 36 | dstSubfolderSpec = 10; 37 | files = ( 38 | ); 39 | name = "Embed Frameworks"; 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXCopyFilesBuildPhase section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 00E26E8518F8EA62DED394DA /* 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 = ""; }; 46 | 05317787F55E786663495526 /* 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 = ""; }; 47 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 48 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 49 | 1D32284FD3F60AF6593D4DD8 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 51 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 53 | 4962E2EE59C03BDA95E2FF07 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; 54 | 4D16C0BBF0BCDC2711C934B3 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 705EF1544A67448BC1B8C07C /* 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 = ""; }; 56 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 57 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 58 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 59 | 8BD1F55BA17F3C7667B47776 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; 60 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 61 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 62 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 64 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 65 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 66 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 67 | E704C733DA4E132288A70853 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 81D7742FE4CAD4843F501DB5 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | CBAA036F8A5CDEFD12B37971 /* Pods_RunnerTests.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 492233310E8ABFAF3712471E /* Pods_Runner.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 94 | ); 95 | path = RunnerTests; 96 | sourceTree = ""; 97 | }; 98 | 9443A6A033F016A6EF998C0E /* Pods */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 705EF1544A67448BC1B8C07C /* Pods-Runner.debug.xcconfig */, 102 | 05317787F55E786663495526 /* Pods-Runner.release.xcconfig */, 103 | 00E26E8518F8EA62DED394DA /* Pods-Runner.profile.xcconfig */, 104 | 8BD1F55BA17F3C7667B47776 /* Pods-RunnerTests.debug.xcconfig */, 105 | E704C733DA4E132288A70853 /* Pods-RunnerTests.release.xcconfig */, 106 | 4962E2EE59C03BDA95E2FF07 /* Pods-RunnerTests.profile.xcconfig */, 107 | ); 108 | path = Pods; 109 | sourceTree = ""; 110 | }; 111 | 9740EEB11CF90186004384FC /* Flutter */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 115 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 116 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 117 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 118 | ); 119 | name = Flutter; 120 | sourceTree = ""; 121 | }; 122 | 97C146E51CF9000F007C117D = { 123 | isa = PBXGroup; 124 | children = ( 125 | 9740EEB11CF90186004384FC /* Flutter */, 126 | 97C146F01CF9000F007C117D /* Runner */, 127 | 97C146EF1CF9000F007C117D /* Products */, 128 | 331C8082294A63A400263BE5 /* RunnerTests */, 129 | 9443A6A033F016A6EF998C0E /* Pods */, 130 | CBF223DC4CF0B67BBDC8E70B /* Frameworks */, 131 | ); 132 | sourceTree = ""; 133 | }; 134 | 97C146EF1CF9000F007C117D /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 97C146EE1CF9000F007C117D /* Runner.app */, 138 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 139 | ); 140 | name = Products; 141 | sourceTree = ""; 142 | }; 143 | 97C146F01CF9000F007C117D /* Runner */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 147 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 148 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 149 | 97C147021CF9000F007C117D /* Info.plist */, 150 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 151 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 152 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 153 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 154 | ); 155 | path = Runner; 156 | sourceTree = ""; 157 | }; 158 | CBF223DC4CF0B67BBDC8E70B /* Frameworks */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 4D16C0BBF0BCDC2711C934B3 /* Pods_Runner.framework */, 162 | 1D32284FD3F60AF6593D4DD8 /* Pods_RunnerTests.framework */, 163 | ); 164 | name = Frameworks; 165 | sourceTree = ""; 166 | }; 167 | /* End PBXGroup section */ 168 | 169 | /* Begin PBXNativeTarget section */ 170 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 171 | isa = PBXNativeTarget; 172 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 173 | buildPhases = ( 174 | D49F4C4FA3B206C5FD6961E8 /* [CP] Check Pods Manifest.lock */, 175 | 331C807D294A63A400263BE5 /* Sources */, 176 | 331C807F294A63A400263BE5 /* Resources */, 177 | 81D7742FE4CAD4843F501DB5 /* Frameworks */, 178 | ); 179 | buildRules = ( 180 | ); 181 | dependencies = ( 182 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 183 | ); 184 | name = RunnerTests; 185 | productName = RunnerTests; 186 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 187 | productType = "com.apple.product-type.bundle.unit-test"; 188 | }; 189 | 97C146ED1CF9000F007C117D /* Runner */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 192 | buildPhases = ( 193 | 2396DECB8D23B071B39EFF9B /* [CP] Check Pods Manifest.lock */, 194 | 9740EEB61CF901F6004384FC /* Run Script */, 195 | 97C146EA1CF9000F007C117D /* Sources */, 196 | 97C146EB1CF9000F007C117D /* Frameworks */, 197 | 97C146EC1CF9000F007C117D /* Resources */, 198 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 200 | CB52DE8571E06BB8361DB92B /* [CP] Embed Pods Frameworks */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | ); 206 | name = Runner; 207 | productName = Runner; 208 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 209 | productType = "com.apple.product-type.application"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | 97C146E61CF9000F007C117D /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | BuildIndependentTargetsInParallel = YES; 218 | LastUpgradeCheck = 1430; 219 | ORGANIZATIONNAME = ""; 220 | TargetAttributes = { 221 | 331C8080294A63A400263BE5 = { 222 | CreatedOnToolsVersion = 14.0; 223 | TestTargetID = 97C146ED1CF9000F007C117D; 224 | }; 225 | 97C146ED1CF9000F007C117D = { 226 | CreatedOnToolsVersion = 7.3.1; 227 | LastSwiftMigration = 1100; 228 | }; 229 | }; 230 | }; 231 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 232 | compatibilityVersion = "Xcode 9.3"; 233 | developmentRegion = en; 234 | hasScannedForEncodings = 0; 235 | knownRegions = ( 236 | en, 237 | Base, 238 | ); 239 | mainGroup = 97C146E51CF9000F007C117D; 240 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 241 | projectDirPath = ""; 242 | projectRoot = ""; 243 | targets = ( 244 | 97C146ED1CF9000F007C117D /* Runner */, 245 | 331C8080294A63A400263BE5 /* RunnerTests */, 246 | ); 247 | }; 248 | /* End PBXProject section */ 249 | 250 | /* Begin PBXResourcesBuildPhase section */ 251 | 331C807F294A63A400263BE5 /* Resources */ = { 252 | isa = PBXResourcesBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | 97C146EC1CF9000F007C117D /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 263 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 264 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 265 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | /* End PBXResourcesBuildPhase section */ 270 | 271 | /* Begin PBXShellScriptBuildPhase section */ 272 | 2396DECB8D23B071B39EFF9B /* [CP] Check Pods Manifest.lock */ = { 273 | isa = PBXShellScriptBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | ); 277 | inputFileListPaths = ( 278 | ); 279 | inputPaths = ( 280 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 281 | "${PODS_ROOT}/Manifest.lock", 282 | ); 283 | name = "[CP] Check Pods Manifest.lock"; 284 | outputFileListPaths = ( 285 | ); 286 | outputPaths = ( 287 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | shellPath = /bin/sh; 291 | 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"; 292 | showEnvVarsInLog = 0; 293 | }; 294 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 295 | isa = PBXShellScriptBuildPhase; 296 | alwaysOutOfDate = 1; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputPaths = ( 301 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 302 | ); 303 | name = "Thin Binary"; 304 | outputPaths = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | shellPath = /bin/sh; 308 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 309 | }; 310 | 9740EEB61CF901F6004384FC /* Run Script */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | alwaysOutOfDate = 1; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | inputPaths = ( 317 | ); 318 | name = "Run Script"; 319 | outputPaths = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | shellPath = /bin/sh; 323 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 324 | }; 325 | CB52DE8571E06BB8361DB92B /* [CP] Embed Pods Frameworks */ = { 326 | isa = PBXShellScriptBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | inputFileListPaths = ( 331 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 332 | ); 333 | name = "[CP] Embed Pods Frameworks"; 334 | outputFileListPaths = ( 335 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | D49F4C4FA3B206C5FD6961E8 /* [CP] Check Pods Manifest.lock */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputFileListPaths = ( 348 | ); 349 | inputPaths = ( 350 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 351 | "${PODS_ROOT}/Manifest.lock", 352 | ); 353 | name = "[CP] Check Pods Manifest.lock"; 354 | outputFileListPaths = ( 355 | ); 356 | outputPaths = ( 357 | "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | shellPath = /bin/sh; 361 | 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"; 362 | showEnvVarsInLog = 0; 363 | }; 364 | /* End PBXShellScriptBuildPhase section */ 365 | 366 | /* Begin PBXSourcesBuildPhase section */ 367 | 331C807D294A63A400263BE5 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | 97C146EA1CF9000F007C117D /* Sources */ = { 376 | isa = PBXSourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 380 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | /* End PBXSourcesBuildPhase section */ 385 | 386 | /* Begin PBXTargetDependency section */ 387 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 388 | isa = PBXTargetDependency; 389 | target = 97C146ED1CF9000F007C117D /* Runner */; 390 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 391 | }; 392 | /* End PBXTargetDependency section */ 393 | 394 | /* Begin PBXVariantGroup section */ 395 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 396 | isa = PBXVariantGroup; 397 | children = ( 398 | 97C146FB1CF9000F007C117D /* Base */, 399 | ); 400 | name = Main.storyboard; 401 | sourceTree = ""; 402 | }; 403 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 404 | isa = PBXVariantGroup; 405 | children = ( 406 | 97C147001CF9000F007C117D /* Base */, 407 | ); 408 | name = LaunchScreen.storyboard; 409 | sourceTree = ""; 410 | }; 411 | /* End PBXVariantGroup section */ 412 | 413 | /* Begin XCBuildConfiguration section */ 414 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 415 | isa = XCBuildConfiguration; 416 | buildSettings = { 417 | ALWAYS_SEARCH_USER_PATHS = NO; 418 | CLANG_ANALYZER_NONNULL = YES; 419 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 420 | CLANG_CXX_LIBRARY = "libc++"; 421 | CLANG_ENABLE_MODULES = YES; 422 | CLANG_ENABLE_OBJC_ARC = YES; 423 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 424 | CLANG_WARN_BOOL_CONVERSION = YES; 425 | CLANG_WARN_COMMA = YES; 426 | CLANG_WARN_CONSTANT_CONVERSION = YES; 427 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 428 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 429 | CLANG_WARN_EMPTY_BODY = YES; 430 | CLANG_WARN_ENUM_CONVERSION = YES; 431 | CLANG_WARN_INFINITE_RECURSION = YES; 432 | CLANG_WARN_INT_CONVERSION = YES; 433 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 434 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 435 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 438 | CLANG_WARN_STRICT_PROTOTYPES = YES; 439 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 440 | CLANG_WARN_UNREACHABLE_CODE = YES; 441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 443 | COPY_PHASE_STRIP = NO; 444 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 445 | ENABLE_NS_ASSERTIONS = NO; 446 | ENABLE_STRICT_OBJC_MSGSEND = YES; 447 | GCC_C_LANGUAGE_STANDARD = gnu99; 448 | GCC_NO_COMMON_BLOCKS = YES; 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 456 | MTL_ENABLE_DEBUG_INFO = NO; 457 | SDKROOT = iphoneos; 458 | SUPPORTED_PLATFORMS = iphoneos; 459 | TARGETED_DEVICE_FAMILY = "1,2"; 460 | VALIDATE_PRODUCT = YES; 461 | }; 462 | name = Profile; 463 | }; 464 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 465 | isa = XCBuildConfiguration; 466 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 467 | buildSettings = { 468 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 469 | CLANG_ENABLE_MODULES = YES; 470 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 471 | DEVELOPMENT_TEAM = 6X6FZG6RGC; 472 | ENABLE_BITCODE = NO; 473 | INFOPLIST_FILE = Runner/Info.plist; 474 | LD_RUNPATH_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "@executable_path/Frameworks", 477 | ); 478 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 481 | SWIFT_VERSION = 5.0; 482 | VERSIONING_SYSTEM = "apple-generic"; 483 | }; 484 | name = Profile; 485 | }; 486 | 331C8088294A63A400263BE5 /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = 8BD1F55BA17F3C7667B47776 /* Pods-RunnerTests.debug.xcconfig */; 489 | buildSettings = { 490 | BUNDLE_LOADER = "$(TEST_HOST)"; 491 | CODE_SIGN_STYLE = Automatic; 492 | CURRENT_PROJECT_VERSION = 1; 493 | GENERATE_INFOPLIST_FILE = YES; 494 | MARKETING_VERSION = 1.0; 495 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 498 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 499 | SWIFT_VERSION = 5.0; 500 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 501 | }; 502 | name = Debug; 503 | }; 504 | 331C8089294A63A400263BE5 /* Release */ = { 505 | isa = XCBuildConfiguration; 506 | baseConfigurationReference = E704C733DA4E132288A70853 /* Pods-RunnerTests.release.xcconfig */; 507 | buildSettings = { 508 | BUNDLE_LOADER = "$(TEST_HOST)"; 509 | CODE_SIGN_STYLE = Automatic; 510 | CURRENT_PROJECT_VERSION = 1; 511 | GENERATE_INFOPLIST_FILE = YES; 512 | MARKETING_VERSION = 1.0; 513 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; 514 | PRODUCT_NAME = "$(TARGET_NAME)"; 515 | SWIFT_VERSION = 5.0; 516 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 517 | }; 518 | name = Release; 519 | }; 520 | 331C808A294A63A400263BE5 /* Profile */ = { 521 | isa = XCBuildConfiguration; 522 | baseConfigurationReference = 4962E2EE59C03BDA95E2FF07 /* Pods-RunnerTests.profile.xcconfig */; 523 | buildSettings = { 524 | BUNDLE_LOADER = "$(TEST_HOST)"; 525 | CODE_SIGN_STYLE = Automatic; 526 | CURRENT_PROJECT_VERSION = 1; 527 | GENERATE_INFOPLIST_FILE = YES; 528 | MARKETING_VERSION = 1.0; 529 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_VERSION = 5.0; 532 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 533 | }; 534 | name = Profile; 535 | }; 536 | 97C147031CF9000F007C117D /* Debug */ = { 537 | isa = XCBuildConfiguration; 538 | buildSettings = { 539 | ALWAYS_SEARCH_USER_PATHS = NO; 540 | CLANG_ANALYZER_NONNULL = YES; 541 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 542 | CLANG_CXX_LIBRARY = "libc++"; 543 | CLANG_ENABLE_MODULES = YES; 544 | CLANG_ENABLE_OBJC_ARC = YES; 545 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 546 | CLANG_WARN_BOOL_CONVERSION = YES; 547 | CLANG_WARN_COMMA = YES; 548 | CLANG_WARN_CONSTANT_CONVERSION = YES; 549 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 550 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 551 | CLANG_WARN_EMPTY_BODY = YES; 552 | CLANG_WARN_ENUM_CONVERSION = YES; 553 | CLANG_WARN_INFINITE_RECURSION = YES; 554 | CLANG_WARN_INT_CONVERSION = YES; 555 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 556 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 557 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 558 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 559 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 560 | CLANG_WARN_STRICT_PROTOTYPES = YES; 561 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 562 | CLANG_WARN_UNREACHABLE_CODE = YES; 563 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 564 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 565 | COPY_PHASE_STRIP = NO; 566 | DEBUG_INFORMATION_FORMAT = dwarf; 567 | ENABLE_STRICT_OBJC_MSGSEND = YES; 568 | ENABLE_TESTABILITY = YES; 569 | GCC_C_LANGUAGE_STANDARD = gnu99; 570 | GCC_DYNAMIC_NO_PIC = NO; 571 | GCC_NO_COMMON_BLOCKS = YES; 572 | GCC_OPTIMIZATION_LEVEL = 0; 573 | GCC_PREPROCESSOR_DEFINITIONS = ( 574 | "DEBUG=1", 575 | "$(inherited)", 576 | ); 577 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 578 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 579 | GCC_WARN_UNDECLARED_SELECTOR = YES; 580 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 581 | GCC_WARN_UNUSED_FUNCTION = YES; 582 | GCC_WARN_UNUSED_VARIABLE = YES; 583 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 584 | MTL_ENABLE_DEBUG_INFO = YES; 585 | ONLY_ACTIVE_ARCH = YES; 586 | SDKROOT = iphoneos; 587 | TARGETED_DEVICE_FAMILY = "1,2"; 588 | }; 589 | name = Debug; 590 | }; 591 | 97C147041CF9000F007C117D /* Release */ = { 592 | isa = XCBuildConfiguration; 593 | buildSettings = { 594 | ALWAYS_SEARCH_USER_PATHS = NO; 595 | CLANG_ANALYZER_NONNULL = YES; 596 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 597 | CLANG_CXX_LIBRARY = "libc++"; 598 | CLANG_ENABLE_MODULES = YES; 599 | CLANG_ENABLE_OBJC_ARC = YES; 600 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 601 | CLANG_WARN_BOOL_CONVERSION = YES; 602 | CLANG_WARN_COMMA = YES; 603 | CLANG_WARN_CONSTANT_CONVERSION = YES; 604 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 605 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 606 | CLANG_WARN_EMPTY_BODY = YES; 607 | CLANG_WARN_ENUM_CONVERSION = YES; 608 | CLANG_WARN_INFINITE_RECURSION = YES; 609 | CLANG_WARN_INT_CONVERSION = YES; 610 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 611 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 612 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 613 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 614 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 615 | CLANG_WARN_STRICT_PROTOTYPES = YES; 616 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 617 | CLANG_WARN_UNREACHABLE_CODE = YES; 618 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 619 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 620 | COPY_PHASE_STRIP = NO; 621 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 622 | ENABLE_NS_ASSERTIONS = NO; 623 | ENABLE_STRICT_OBJC_MSGSEND = YES; 624 | GCC_C_LANGUAGE_STANDARD = gnu99; 625 | GCC_NO_COMMON_BLOCKS = YES; 626 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 627 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 628 | GCC_WARN_UNDECLARED_SELECTOR = YES; 629 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 630 | GCC_WARN_UNUSED_FUNCTION = YES; 631 | GCC_WARN_UNUSED_VARIABLE = YES; 632 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 633 | MTL_ENABLE_DEBUG_INFO = NO; 634 | SDKROOT = iphoneos; 635 | SUPPORTED_PLATFORMS = iphoneos; 636 | SWIFT_COMPILATION_MODE = wholemodule; 637 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 638 | TARGETED_DEVICE_FAMILY = "1,2"; 639 | VALIDATE_PRODUCT = YES; 640 | }; 641 | name = Release; 642 | }; 643 | 97C147061CF9000F007C117D /* Debug */ = { 644 | isa = XCBuildConfiguration; 645 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 646 | buildSettings = { 647 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 648 | CLANG_ENABLE_MODULES = YES; 649 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 650 | DEVELOPMENT_TEAM = 6X6FZG6RGC; 651 | ENABLE_BITCODE = NO; 652 | INFOPLIST_FILE = Runner/Info.plist; 653 | LD_RUNPATH_SEARCH_PATHS = ( 654 | "$(inherited)", 655 | "@executable_path/Frameworks", 656 | ); 657 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 658 | PRODUCT_NAME = "$(TARGET_NAME)"; 659 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 660 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 661 | SWIFT_VERSION = 5.0; 662 | VERSIONING_SYSTEM = "apple-generic"; 663 | }; 664 | name = Debug; 665 | }; 666 | 97C147071CF9000F007C117D /* Release */ = { 667 | isa = XCBuildConfiguration; 668 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 669 | buildSettings = { 670 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 671 | CLANG_ENABLE_MODULES = YES; 672 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 673 | DEVELOPMENT_TEAM = 6X6FZG6RGC; 674 | ENABLE_BITCODE = NO; 675 | INFOPLIST_FILE = Runner/Info.plist; 676 | LD_RUNPATH_SEARCH_PATHS = ( 677 | "$(inherited)", 678 | "@executable_path/Frameworks", 679 | ); 680 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 681 | PRODUCT_NAME = "$(TARGET_NAME)"; 682 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 683 | SWIFT_VERSION = 5.0; 684 | VERSIONING_SYSTEM = "apple-generic"; 685 | }; 686 | name = Release; 687 | }; 688 | /* End XCBuildConfiguration section */ 689 | 690 | /* Begin XCConfigurationList section */ 691 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 692 | isa = XCConfigurationList; 693 | buildConfigurations = ( 694 | 331C8088294A63A400263BE5 /* Debug */, 695 | 331C8089294A63A400263BE5 /* Release */, 696 | 331C808A294A63A400263BE5 /* Profile */, 697 | ); 698 | defaultConfigurationIsVisible = 0; 699 | defaultConfigurationName = Release; 700 | }; 701 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 702 | isa = XCConfigurationList; 703 | buildConfigurations = ( 704 | 97C147031CF9000F007C117D /* Debug */, 705 | 97C147041CF9000F007C117D /* Release */, 706 | 249021D3217E4FDB00AE95B9 /* Profile */, 707 | ); 708 | defaultConfigurationIsVisible = 0; 709 | defaultConfigurationName = Release; 710 | }; 711 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 712 | isa = XCConfigurationList; 713 | buildConfigurations = ( 714 | 97C147061CF9000F007C117D /* Debug */, 715 | 97C147071CF9000F007C117D /* Release */, 716 | 249021D4217E4FDB00AE95B9 /* Profile */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | /* End XCConfigurationList section */ 722 | }; 723 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 724 | } 725 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/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. -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | 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 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_map_arcgis/flutter_map_arcgis.dart'; 3 | import 'package:flutter_map/flutter_map.dart'; 4 | import 'package:latlong2/latlong.dart'; 5 | 6 | void main() => runApp(MyApp()); 7 | 8 | class MyApp extends StatefulWidget { 9 | @override 10 | _MyAppState createState() => _MyAppState(); 11 | } 12 | 13 | class _MyAppState extends State { 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return MaterialApp( 23 | home: Scaffold( 24 | appBar: AppBar(title: Text('ArcGIS')), 25 | body: Padding( 26 | padding: EdgeInsets.all(8.0), 27 | child: Column( 28 | children: [ 29 | Flexible( 30 | child: FlutterMap( 31 | options: MapOptions( 32 | // center: LatLng(39.7644863,-105.0199111), // line 33 | center: LatLng(35.611909, -82.440682), 34 | zoom: 14.0, 35 | 36 | 37 | ), 38 | children: [ 39 | TileLayer( 40 | urlTemplate: 41 | 'http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', 42 | subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], 43 | ), 44 | FeatureLayer(FeatureLayerOptions("https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Congressional_Districts/FeatureServer/0", 45 | "polygon", 46 | onTap: (dynamic attributes, LatLng location) { 47 | print(attributes); 48 | }, 49 | render: (dynamic attributes){ 50 | return PolygonOptions( 51 | borderColor: Colors.red, 52 | color: Colors.black45, 53 | borderStrokeWidth: 2, 54 | isFilled:true 55 | ); 56 | }, 57 | ),) 58 | // FeatureLayer( 59 | // FeatureLayerOptions( 60 | // "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0", 61 | // "point", 62 | // render:(dynamic attributes){ 63 | // // You can render by attribute 64 | // return PointOptions( 65 | // width: 30.0, 66 | // height: 30.0, 67 | // builder: const Icon(Icons.pin_drop), 68 | // ); 69 | // }, 70 | // onTap: (attributes, LatLng location) { 71 | // print(attributes); 72 | // }, 73 | // ) 74 | // ), 75 | // FeatureLayer(FeatureLayerOptions( 76 | // "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Denver_Streets_Centerline/FeatureServer/0", 77 | // "polyline", 78 | // render:(dynamic attributes){ 79 | // // You can render by attribute 80 | // return PolygonLineOptions( 81 | // borderColor: Colors.red, 82 | // color: Colors.red, 83 | // borderStrokeWidth: 2 84 | // ); 85 | // }, 86 | // onTap: (attributes, LatLng location) { 87 | // print(attributes); 88 | // }, 89 | // )) 90 | 91 | ], 92 | ), 93 | ), 94 | ], 95 | ), 96 | ), 97 | ), 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_map_arcgis_example 2 | description: Demonstrates how to use the flutter_map_arcgis plugin. 3 | publish_to: 'none' 4 | 5 | environment: 6 | sdk: ">=3.0.0 <4.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | flutter_map: ^6.0.1 12 | dio: ^5.3.3 13 | latlong2: ^0.9.0 14 | collection: ^1.16.0 15 | tuple: ^2.0.1 16 | 17 | # The following adds the Cupertino Icons font to your application. 18 | # Use with the CupertinoIcons class for iOS style icons. 19 | cupertino_icons: ^1.0.3 20 | 21 | dev_dependencies: 22 | flutter_test: 23 | sdk: flutter 24 | 25 | flutter_map_arcgis: 26 | path: ../ 27 | 28 | # For information on the generic Dart part of this file, see the 29 | # following page: https://dart.dev/tools/pub/pubspec 30 | 31 | # The following section is specific to Flutter. 32 | flutter: 33 | 34 | # The following line ensures that the Material Icons font is 35 | # included with your application, so that you can use the icons in 36 | # the material Icons class. 37 | uses-material-design: true 38 | 39 | # To add assets to your application, add an assets section, like this: 40 | # assets: 41 | # - images/a_dot_burr.jpeg 42 | # - images/a_dot_ham.jpeg 43 | 44 | # An image asset can refer to one or more resolution-specific "variants", see 45 | # https://flutter.dev/assets-and-images/#resolution-aware. 46 | 47 | # For details regarding adding assets from package dependencies, see 48 | # https://flutter.dev/assets-and-images/#from-packages 49 | 50 | # To add custom fonts to your application, add a fonts section here, 51 | # in this "flutter" section. Each entry in this list should have a 52 | # "family" key with the font family name, and a "fonts" key with a 53 | # list giving the asset and other descriptors for the font. For 54 | # example: 55 | # fonts: 56 | # - family: Schyler 57 | # fonts: 58 | # - asset: fonts/Schyler-Regular.ttf 59 | # - asset: fonts/Schyler-Italic.ttf 60 | # style: italic 61 | # - family: Trajan Pro 62 | # fonts: 63 | # - asset: fonts/TrajanPro.ttf 64 | # - asset: fonts/TrajanPro_Bold.ttf 65 | # weight: 700 66 | # 67 | # For details regarding fonts from package dependencies, 68 | # see https://flutter.dev/custom-fonts/#from-packages 69 | -------------------------------------------------------------------------------- /example/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 in the flutter_test package. 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: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 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/khankhulgun/flutter_map_arcgis/b4236c8fd74159cdd8afa843030f9b316eb1269c/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /ios/Classes/FlutterMapArcgisPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface FlutterMapArcgisPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /ios/Classes/FlutterMapArcgisPlugin.m: -------------------------------------------------------------------------------- 1 | #import "FlutterMapArcgisPlugin.h" 2 | #if __has_include() 3 | #import 4 | #else 5 | // Support project import fallback if the generated compatibility header 6 | // is not copied when this plugin is created as a library. 7 | // https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816 8 | #import "flutter_map_arcgis-Swift.h" 9 | #endif 10 | 11 | @implementation FlutterMapArcgisPlugin 12 | + (void)registerWithRegistrar:(NSObject*)registrar { 13 | [SwiftFlutterMapArcgisPlugin registerWithRegistrar:registrar]; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /ios/Classes/SwiftFlutterMapArcgisPlugin.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | public class SwiftFlutterMapArcgisPlugin: NSObject, FlutterPlugin { 5 | public static func register(with registrar: FlutterPluginRegistrar) { 6 | let channel = FlutterMethodChannel(name: "flutter_map_arcgis", binaryMessenger: registrar.messenger()) 7 | let instance = SwiftFlutterMapArcgisPlugin() 8 | registrar.addMethodCallDelegate(instance, channel: channel) 9 | } 10 | 11 | public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { 12 | result("iOS " + UIDevice.current.systemVersion) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /ios/flutter_map_arcgis.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. 3 | # Run `pod lib lint flutter_map_arcgis.podspec' to validate before publishing. 4 | # 5 | Pod::Spec.new do |s| 6 | s.name = 'flutter_map_arcgis' 7 | s.version = '0.0.1' 8 | s.summary = 'Arcgis plugin for flutter map' 9 | s.description = <<-DESC 10 | Arcgis plugin for flutter map 11 | DESC 12 | s.homepage = 'http://example.com' 13 | s.license = { :file => '../LICENSE' } 14 | s.author = { 'Your Company' => 'email@example.com' } 15 | s.source = { :path => '.' } 16 | s.source_files = 'Classes/**/*' 17 | s.dependency 'Flutter' 18 | s.platform = :ios, '8.0' 19 | 20 | # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. 21 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } 22 | s.swift_version = '5.0' 23 | end 24 | -------------------------------------------------------------------------------- /lib/flutter_map_arcgis.dart: -------------------------------------------------------------------------------- 1 | library flutter_map_arcgis; 2 | 3 | export 'layers/feature_layer.dart'; 4 | export 'layers/feature_layer_options.dart'; 5 | 6 | -------------------------------------------------------------------------------- /lib/layers/feature_layer.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'package:flutter_map/flutter_map.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:collection/collection.dart'; 5 | import 'package:latlong2/latlong.dart'; 6 | import 'feature_layer_options.dart'; 7 | import 'package:tuple/tuple.dart'; 8 | import 'package:dio/dio.dart'; 9 | import 'dart:convert'; 10 | import 'package:flutter_map/src/layer/tile_layer/tile_image_manager.dart'; 11 | import 'dart:async'; 12 | import 'package:flutter_map/src/layer/tile_layer/tile_range.dart'; 13 | import 'package:flutter_map/src/layer/tile_layer/tile_bounds/tile_bounds.dart'; 14 | import 'package:flutter_map/src/layer/tile_layer/tile_range_calculator.dart'; 15 | import 'package:flutter_map/src/layer/tile_layer/tile_scale_calculator.dart'; 16 | import 'package:flutter_map/src/layer/tile_layer/tile_update_event.dart'; 17 | 18 | @immutable 19 | class FeatureLayer extends StatefulWidget { 20 | final FeatureLayerOptions options; 21 | final Stream? reset; 22 | 23 | /// Only load tiles that are within these bounds 24 | final LatLngBounds? tileBounds; 25 | final TileUpdateTransformer tileUpdateTransformer; 26 | 27 | FeatureLayer( 28 | this.options, { 29 | super.key, 30 | this.reset, 31 | this.tileBounds, 32 | TileUpdateTransformer? tileUpdateTransformer, 33 | }) : tileUpdateTransformer = 34 | tileUpdateTransformer ?? TileUpdateTransformers.ignoreTapEvents {} 35 | 36 | @override 37 | State createState() => _FeatureLayerState(); 38 | } 39 | 40 | class _FeatureLayerState extends State 41 | with TickerProviderStateMixin { 42 | bool _initializedFromMapCamera = false; 43 | List featuresPre = []; 44 | List features = []; 45 | 46 | StreamSubscription? _moveSub; 47 | 48 | var timer = Timer(Duration(milliseconds: 100), () => {}); 49 | 50 | bool isMoving = false; 51 | 52 | Tuple2? _wrapX; 53 | Tuple2? _wrapY; 54 | double? _tileZoom; 55 | 56 | Bounds? _globalTileRange; 57 | LatLngBounds? currentBounds; 58 | int activeRequests = 0; 59 | int targetRequests = 0; 60 | 61 | final _tileImageManager = TileImageManager(); 62 | late TileBounds _tileBounds; 63 | late var _tileRangeCalculator = TileRangeCalculator(tileSize: 256); 64 | late TileScaleCalculator _tileScaleCalculator; 65 | 66 | // We have to hold on to the mapController hashCode to determine whether we 67 | // need to reinitialize the listeners. didChangeDependencies is called on 68 | // every map movement and if we unsubscribe and resubscribe every time we 69 | // miss events. 70 | int? _mapControllerHashCode; 71 | 72 | StreamSubscription? _tileUpdateSubscription; 73 | Timer? _pruneLater; 74 | 75 | late final _resetSub = widget.reset?.listen((_) { 76 | _tileImageManager.removeAll(EvictErrorTileStrategy.none); 77 | _loadAndPruneInVisibleBounds(MapCamera.of(context)); 78 | }); 79 | 80 | // This is called on every map movement so we should avoid expensive logic 81 | // where possible. 82 | @override 83 | void didChangeDependencies() { 84 | super.didChangeDependencies(); 85 | 86 | final camera = MapCamera.of(context); 87 | final mapController = MapController.of(context); 88 | 89 | if (_mapControllerHashCode != mapController.hashCode) { 90 | _tileUpdateSubscription?.cancel(); 91 | 92 | _mapControllerHashCode = mapController.hashCode; 93 | _tileUpdateSubscription = mapController.mapEventStream 94 | .map((mapEvent) => TileUpdateEvent(mapEvent: mapEvent)) 95 | .transform(widget.tileUpdateTransformer) 96 | .listen((event) => _onTileUpdateEvent(event)); 97 | } 98 | 99 | var reloadTiles = false; 100 | if (!_initializedFromMapCamera || 101 | _tileBounds.shouldReplace(camera.crs, 256, widget.tileBounds)) { 102 | reloadTiles = true; 103 | _tileBounds = TileBounds( 104 | crs: camera.crs, 105 | tileSize: 256, 106 | latLngBounds: widget.tileBounds, 107 | ); 108 | } 109 | 110 | if (!_initializedFromMapCamera || 111 | _tileScaleCalculator.shouldReplace(camera.crs, 256)) { 112 | reloadTiles = true; 113 | _tileScaleCalculator = TileScaleCalculator( 114 | crs: camera.crs, 115 | tileSize: 256, 116 | ); 117 | } 118 | 119 | if (reloadTiles) _loadAndPruneInVisibleBounds(camera); 120 | 121 | _initializedFromMapCamera = true; 122 | } 123 | 124 | int _clampToNativeZoom(double zoom) => zoom.round().clamp(0, 19); 125 | 126 | @override 127 | void didUpdateWidget(FeatureLayer oldWidget) { 128 | super.didUpdateWidget(oldWidget); 129 | var reloadTiles = false; 130 | 131 | // There is no caching in TileRangeCalculator so we can just replace it. 132 | _tileRangeCalculator = TileRangeCalculator(tileSize: 256); 133 | 134 | if (_tileBounds.shouldReplace(_tileBounds.crs, 256, widget.tileBounds)) { 135 | _tileBounds = TileBounds( 136 | crs: _tileBounds.crs, 137 | tileSize: 256, 138 | latLngBounds: widget.tileBounds, 139 | ); 140 | reloadTiles = true; 141 | } 142 | 143 | if (_tileScaleCalculator.shouldReplace(_tileScaleCalculator.crs, 256)) { 144 | _tileScaleCalculator = TileScaleCalculator( 145 | crs: _tileScaleCalculator.crs, 146 | tileSize: 256, 147 | ); 148 | } 149 | 150 | if (reloadTiles) { 151 | _tileImageManager.removeAll(EvictErrorTileStrategy.none); 152 | _loadAndPruneInVisibleBounds(MapCamera.maybeOf(context)!); 153 | } 154 | } 155 | 156 | void _onTileUpdateEvent(TileUpdateEvent event) { 157 | final tileZoom = _clampToNativeZoom(event.zoom); 158 | final visibleTileRange = _tileRangeCalculator.calculate( 159 | camera: event.camera, 160 | tileZoom: tileZoom, 161 | center: event.center, 162 | viewingZoom: event.zoom, 163 | ); 164 | 165 | if (event.load) { 166 | _loadTiles(visibleTileRange, pruneAfterLoad: event.prune); 167 | } 168 | 169 | if (event.prune) { 170 | _tileImageManager.evictAndPrune( 171 | visibleRange: visibleTileRange, 172 | pruneBuffer: 1 + 2, 173 | evictStrategy: EvictErrorTileStrategy.none, 174 | ); 175 | } 176 | } 177 | 178 | void _loadTiles( 179 | DiscreteTileRange tileLoadRange, { 180 | required bool pruneAfterLoad, 181 | }) async { 182 | setState(() { 183 | if (isMoving) { 184 | timer.cancel(); 185 | } 186 | 187 | isMoving = true; 188 | timer = Timer(Duration(milliseconds: 200), () { 189 | isMoving = false; 190 | if (pruneAfterLoad) { 191 | final map = MapCamera.of(context); 192 | 193 | targetRequests = 1; 194 | activeRequests = 1; 195 | requestFeatures(map.visibleBounds); 196 | } 197 | }); 198 | }); 199 | } 200 | 201 | Bounds _pxBoundsToTileRange(Bounds bounds) { 202 | var tileSize = CustomPoint(256.0, 256.0); 203 | return Bounds( 204 | bounds.min.unscaleBy(tileSize).floor(), 205 | bounds.max.unscaleBy(tileSize).ceil() - CustomPoint(1, 1), 206 | ); 207 | } 208 | 209 | double _clampZoom(double zoom) { 210 | // todo 211 | return zoom; 212 | } 213 | 214 | void getMapState() {} 215 | 216 | void _loadAndPruneInVisibleBounds(MapCamera camera) { 217 | final tileZoom = _clampToNativeZoom(camera.zoom); 218 | final visibleTileRange = _tileRangeCalculator.calculate( 219 | camera: camera, 220 | tileZoom: tileZoom, 221 | ); 222 | 223 | _tileImageManager.evictAndPrune( 224 | visibleRange: visibleTileRange, 225 | pruneBuffer: max(1, 2), 226 | evictStrategy: EvictErrorTileStrategy.none, 227 | ); 228 | } 229 | 230 | Future requestFeatures(LatLngBounds bounds) async { 231 | try { 232 | String bounds_ = 233 | '"xmin":${bounds.southWest!.longitude},"ymin":${bounds.southWest!.latitude},"xmax":${bounds.northEast!.longitude},"ymax":${bounds.northEast?.latitude}'; 234 | 235 | String url = 236 | '${widget.options.url}/query?f=json&geometry={"spatialReference":{"wkid":4326},$bounds_}&maxRecordCountFactor=30&outFields=*&outSR=4326&returnExceededLimitFeatures=true&spatialRel=esriSpatialRelIntersects&where=1=1&geometryType=esriGeometryEnvelope'; 237 | 238 | // print(url); 239 | 240 | Response response = await Dio().get(url); 241 | 242 | var features_ = []; 243 | 244 | var jsonData = response.data; 245 | if (jsonData is String) { 246 | jsonData = jsonDecode(jsonData); 247 | } 248 | 249 | if (jsonData["features"] != null) { 250 | for (var feature in jsonData["features"]) { 251 | if (widget.options.geometryType == "point") { 252 | var render = widget.options.render!(feature["attributes"]); 253 | 254 | if (render != null) { 255 | var latLng = LatLng(feature["geometry"]["y"].toDouble(), 256 | feature["geometry"]["x"].toDouble()); 257 | 258 | features_.add(Marker( 259 | width: render.width, 260 | height: render.height, 261 | point: latLng, 262 | child: Container( 263 | child: GestureDetector( 264 | onTap: () { 265 | widget.options.onTap!(feature["attributes"], latLng); 266 | }, 267 | child: render.builder, 268 | )), 269 | )); 270 | } 271 | } else if (widget.options.geometryType == "polygon") { 272 | for (var ring in feature["geometry"]["rings"]) { 273 | var points = []; 274 | 275 | for (var point_ in ring) { 276 | points.add(LatLng(point_[1].toDouble(), point_[0].toDouble())); 277 | } 278 | 279 | var render = widget.options.render!(feature["attributes"]); 280 | 281 | if (render != null) { 282 | features_.add(PolygonEsri( 283 | points: points, 284 | borderStrokeWidth: render.borderStrokeWidth, 285 | color: render.color, 286 | borderColor: render.borderColor, 287 | isDotted: render.isDotted, 288 | isFilled: render.isFilled, 289 | attributes: feature["attributes"], 290 | )); 291 | } 292 | } 293 | } else if (widget.options.geometryType == "polyline") { 294 | for (var ring in feature["geometry"]["paths"]) { 295 | var points = []; 296 | 297 | for (var point_ in ring) { 298 | points.add(LatLng(point_[1].toDouble(), point_[0].toDouble())); 299 | } 300 | 301 | var render = widget.options.render!(feature["attributes"]); 302 | 303 | if (render != null) { 304 | features_.add(PolyLineEsri( 305 | points: points, 306 | borderStrokeWidth: render.borderStrokeWidth, 307 | color: render.color, 308 | borderColor: render.borderColor, 309 | isDotted: render.isDotted, 310 | attributes: feature["attributes"], 311 | )); 312 | } 313 | } 314 | } 315 | } 316 | 317 | activeRequests++; 318 | 319 | if (activeRequests >= targetRequests) { 320 | setState(() { 321 | features = [...featuresPre, ...features_]; 322 | featuresPre = []; 323 | }); 324 | } else { 325 | setState(() { 326 | features = [...features, ...features_]; 327 | featuresPre = [...featuresPre, ...features_]; 328 | }); 329 | } 330 | } 331 | } catch (e) { 332 | print(e); 333 | } 334 | } 335 | 336 | void findTapedPolygon(LatLng position) { 337 | for (var polygon in features) { 338 | var isInclude = _pointInPolygon(position, polygon.points); 339 | if (isInclude) { 340 | widget.options.onTap!(polygon.attributes, position); 341 | } else { 342 | widget.options.onTap!(null, position); 343 | } 344 | } 345 | } 346 | 347 | LatLng _offsetToCrs(Offset offset) { 348 | final camera = MapCamera.of(context); 349 | var renderObject = context.findRenderObject() as RenderBox; 350 | var width = renderObject.size.width; 351 | var height = renderObject.size.height; 352 | 353 | // convert the point to global coordinates 354 | var localPoint = _offsetToPoint(offset); 355 | var localPointCenterDistance = 356 | CustomPoint((width / 2) - localPoint.x, (height / 2) - localPoint.y); 357 | var mapCenter = camera.project(camera.center); 358 | var point = mapCenter - localPointCenterDistance; 359 | return camera.unproject(point); 360 | } 361 | 362 | CustomPoint _offsetToPoint(Offset offset) { 363 | return CustomPoint(offset.dx, offset.dy); 364 | } 365 | 366 | @override 367 | void dispose() { 368 | _tileUpdateSubscription?.cancel(); 369 | _tileImageManager.removeAll(EvictErrorTileStrategy.none); 370 | _resetSub?.cancel(); 371 | _pruneLater?.cancel(); 372 | 373 | super.dispose(); 374 | } 375 | 376 | @override 377 | Widget build(BuildContext context) { 378 | if (widget.options.geometryType == "point") { 379 | return _buildMarkers(context); 380 | } else if (widget.options.geometryType == "polyline") { 381 | return LayoutBuilder( 382 | builder: (BuildContext context, BoxConstraints bc) { 383 | // TODO unused BoxContraints should remove? 384 | final size = Size(bc.maxWidth, bc.maxHeight); 385 | return _buildPoygonLines(context, size); 386 | }, 387 | ); 388 | } else { 389 | return LayoutBuilder( 390 | builder: (BuildContext context, BoxConstraints bc) { 391 | // TODO unused BoxContraints should remove? 392 | final size = Size(bc.maxWidth, bc.maxHeight); 393 | return _buildPoygons(context, size); 394 | }, 395 | ); 396 | } 397 | } 398 | 399 | Widget _buildMarkers(BuildContext context) { 400 | final map = MapCamera.of(context); 401 | var alignment = Alignment.center; 402 | return MobileLayerTransformer( 403 | child: Stack( 404 | children: (List markers) sync* { 405 | for (final m in features) { 406 | // Resolve real alignment 407 | final left = 0.5 * m.width * ((m.alignment ?? alignment).x + 1); 408 | final top = 0.5 * m.height * ((m.alignment ?? alignment).y + 1); 409 | final right = m.width - left; 410 | final bottom = m.height - top; 411 | 412 | // Perform projection 413 | final pxPoint = map.project(m.point); 414 | 415 | // Cull if out of bounds 416 | if (!map.pixelBounds.containsPartialBounds( 417 | Bounds( 418 | Point(pxPoint.x + left, pxPoint.y - bottom), 419 | Point(pxPoint.x - right, pxPoint.y + top), 420 | ), 421 | )) continue; 422 | 423 | // Apply map camera to marker position 424 | final pos = pxPoint - map.pixelOrigin.toDoublePoint(); 425 | 426 | yield Positioned( 427 | key: m.key, 428 | width: m.width, 429 | height: m.height, 430 | left: pos.x - right, 431 | top: pos.y - bottom, 432 | child: m.child, 433 | ); 434 | } 435 | }(features) 436 | .toList(), 437 | ), 438 | ); 439 | } 440 | 441 | Widget _buildPoygons(BuildContext context, Size size) { 442 | var elements = []; 443 | if (features.isNotEmpty) { 444 | final camera = MapCamera.of(context); 445 | for (var polygon in features) { 446 | if (polygon is PolygonEsri) { 447 | polygon.offsets.clear(); 448 | var i = 0; 449 | 450 | for (var point in polygon.points) { 451 | var pos = camera 452 | .project(point) 453 | .subtract(camera.pixelOrigin) 454 | .toDoublePoint(); 455 | 456 | polygon.offsets.add(Offset(pos.x.toDouble(), pos.y.toDouble())); 457 | if (i > 0 && i < polygon.points.length) { 458 | polygon.offsets.add(Offset(pos.x.toDouble(), pos.y.toDouble())); 459 | } 460 | i++; 461 | } 462 | 463 | elements.add( 464 | GestureDetector( 465 | onTapUp: (details) { 466 | RenderBox box = context.findRenderObject() as RenderBox; 467 | final offset = box.globalToLocal(details.globalPosition); 468 | 469 | var latLng = _offsetToCrs(offset); 470 | findTapedPolygon(latLng); 471 | }, 472 | child: MobileLayerTransformer( 473 | child: CustomPaint( 474 | painter: PolygonPainter([polygon], camera, false, false), 475 | size: size, 476 | ))), 477 | ); 478 | // elements.add( 479 | // CustomPaint( 480 | // painter: PolygonPainter(polygon), 481 | // size: size, 482 | // ) 483 | // ); 484 | 485 | // elements.add( 486 | // CustomPaint( 487 | // painter: PolygonPainter(polygon), 488 | // size: size, 489 | // ) 490 | // ); 491 | } 492 | } 493 | } 494 | 495 | return Container( 496 | child: Stack( 497 | children: elements, 498 | ), 499 | ); 500 | } 501 | 502 | Widget _buildPoygonLines(BuildContext context, Size size) { 503 | var elements = []; 504 | 505 | if (features.isNotEmpty) { 506 | final camera = MapCamera.of(context); 507 | for (var polyLine in features) { 508 | if (polyLine is PolyLineEsri) { 509 | polyLine.offsets.clear(); 510 | var i = 0; 511 | 512 | for (var point in polyLine.points) { 513 | var pos = camera 514 | .project(point) 515 | .subtract(camera.pixelOrigin) 516 | .toDoublePoint(); 517 | polyLine.offsets.add(Offset(pos.x.toDouble(), pos.y.toDouble())); 518 | if (i > 0 && i < polyLine.points.length) { 519 | polyLine.offsets.add(Offset(pos.x.toDouble(), pos.y.toDouble())); 520 | } 521 | i++; 522 | } 523 | 524 | elements.add( 525 | GestureDetector( 526 | onTapUp: (details) { 527 | RenderBox box = context.findRenderObject() as RenderBox; 528 | final offset = box.globalToLocal(details.globalPosition); 529 | 530 | var latLng = _offsetToCrs(offset); 531 | findTapedPolygon(latLng); 532 | }, 533 | child: MobileLayerTransformer( 534 | child: CustomPaint( 535 | painter: 536 | PolylinePainter([polyLine] as List, camera), 537 | size: size, 538 | ))), 539 | ); 540 | } 541 | } 542 | } 543 | 544 | return Container( 545 | child: Stack( 546 | children: elements, 547 | ), 548 | ); 549 | } 550 | } 551 | 552 | class PolygonEsri extends Polygon { 553 | final List points; 554 | final List offsets = []; 555 | final Color color; 556 | final double borderStrokeWidth; 557 | final Color borderColor; 558 | final bool isDotted; 559 | final bool isFilled; 560 | final dynamic attributes; 561 | late final LatLngBounds boundingBox; 562 | 563 | PolygonEsri({ 564 | required this.points, 565 | this.color = const Color(0xFF00FF00), 566 | this.borderStrokeWidth = 0.0, 567 | this.borderColor = const Color(0xFFFFFF00), 568 | this.isDotted = false, 569 | this.isFilled = false, 570 | this.attributes, 571 | }) : super(points: points) { 572 | boundingBox = LatLngBounds.fromPoints(points); 573 | } 574 | } 575 | 576 | class PolyLineEsri extends Polyline { 577 | final List points; 578 | final List offsets = []; 579 | final Color color; 580 | final double borderStrokeWidth; 581 | final Color borderColor; 582 | final bool isDotted; 583 | final dynamic attributes; 584 | late final LatLngBounds boundingBox; 585 | 586 | PolyLineEsri({ 587 | required this.points, 588 | this.color = const Color(0xFF00FF00), 589 | this.borderStrokeWidth = 0.0, 590 | this.borderColor = const Color(0xFFFFFF00), 591 | this.isDotted = false, 592 | this.attributes, 593 | }) : super(points: points) { 594 | boundingBox = LatLngBounds.fromPoints(points); 595 | } 596 | } 597 | 598 | bool _pointInPolygon(LatLng position, List points) { 599 | // Check if the point sits exactly on a vertex 600 | // var vertexPosition = points.firstWhere((point) => point == position, orElse: () => null); 601 | LatLng? vertexPosition = 602 | points.firstWhereOrNull((point) => point == position); 603 | if (vertexPosition != null) { 604 | return true; 605 | } 606 | 607 | // Check if the point is inside the polygon or on the boundary 608 | int intersections = 0; 609 | var verticesCount = points.length; 610 | 611 | for (int i = 1; i < verticesCount; i++) { 612 | LatLng vertex1 = points[i - 1]; 613 | LatLng vertex2 = points[i]; 614 | 615 | // Check if point is on an horizontal polygon boundary 616 | if (vertex1.latitude == vertex2.latitude && 617 | vertex1.latitude == position.latitude && 618 | position.longitude > min(vertex1.longitude, vertex2.longitude) && 619 | position.longitude < max(vertex1.longitude, vertex2.longitude)) { 620 | return true; 621 | } 622 | 623 | if (position.latitude > min(vertex1.latitude, vertex2.latitude) && 624 | position.latitude <= max(vertex1.latitude, vertex2.latitude) && 625 | position.longitude <= max(vertex1.longitude, vertex2.longitude) && 626 | vertex1.latitude != vertex2.latitude) { 627 | var xinters = (position.latitude - vertex1.latitude) * 628 | (vertex2.longitude - vertex1.longitude) / 629 | (vertex2.latitude - vertex1.latitude) + 630 | vertex1.longitude; 631 | if (xinters == position.longitude) { 632 | // Check if point is on the polygon boundary (other than horizontal) 633 | return true; 634 | } 635 | if (vertex1.longitude == vertex2.longitude || 636 | position.longitude <= xinters) { 637 | intersections++; 638 | } 639 | } 640 | } 641 | 642 | // If the number of edges we passed through is odd, then it's in the polygon. 643 | return intersections % 2 != 0; 644 | } 645 | -------------------------------------------------------------------------------- /lib/layers/feature_layer_options.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_map/flutter_map.dart'; 4 | import 'package:latlong2/latlong.dart'; 5 | class PolygonOptions { 6 | final Color color; 7 | final double borderStrokeWidth; 8 | final Color borderColor; 9 | final bool isDotted; 10 | final bool isFilled; 11 | 12 | const PolygonOptions({ 13 | this.color = const Color(0xFF00FF00), 14 | this.borderStrokeWidth = 0.0, 15 | this.borderColor = const Color(0xFFFFFF00), 16 | this.isDotted = false, 17 | this.isFilled = false, 18 | }); 19 | } 20 | class PolygonLineOptions { 21 | final Color color; 22 | final double borderStrokeWidth; 23 | final Color borderColor; 24 | final bool isDotted; 25 | 26 | const PolygonLineOptions({ 27 | this.color = const Color(0xFF00FF00), 28 | this.borderStrokeWidth = 0.0, 29 | this.borderColor = const Color(0xFFFFFF00), 30 | this.isDotted = false, 31 | }); 32 | } 33 | 34 | class PointOptions { 35 | final double width; 36 | final double height; 37 | final Widget builder; 38 | final Alignment? alignment; 39 | const PointOptions({ 40 | this.width = 30.0, 41 | this.height = 30.0, 42 | this.alignment, 43 | this.builder = const Icon(Icons.pin_drop), 44 | }); 45 | } 46 | 47 | class AnimationsOptions { 48 | final Duration zoom; 49 | final Duration fitBound; 50 | final Curve fitBoundCurves; 51 | final Duration centerMarker; 52 | final Curve centerMarkerCurves; 53 | final Duration spiderfy; 54 | 55 | const AnimationsOptions({ 56 | this.zoom = const Duration(milliseconds: 500), 57 | this.fitBound = const Duration(milliseconds: 500), 58 | this.centerMarker = const Duration(milliseconds: 500), 59 | this.spiderfy = const Duration(milliseconds: 500), 60 | this.fitBoundCurves = Curves.fastOutSlowIn, 61 | this.centerMarkerCurves = Curves.fastOutSlowIn, 62 | }); 63 | } 64 | 65 | typedef ClusterWidgetBuilder = Widget Function( 66 | BuildContext context, List markers); 67 | 68 | class FeatureLayerOptions { 69 | /// Cluster size 70 | final Size size; 71 | 72 | /// Cluster compute size 73 | final Size Function(List)? computeSize; 74 | 75 | /// Cluster anchor 76 | final Alignment? alignment; 77 | 78 | /// A cluster will cover at most this many pixels from its center 79 | final int maxClusterRadius; 80 | 81 | /// Feature layer URL 82 | final String url; 83 | 84 | /// Feature layer URL 85 | final String geometryType; 86 | 87 | /// Options for fit bounds 88 | final FitBoundsOptions fitBoundsOptions; 89 | 90 | /// Zoom buonds with animation on click cluster 91 | final bool zoomToBoundsOnClick; 92 | 93 | /// animations options 94 | final AnimationsOptions animationsOptions; 95 | 96 | /// When click marker, center it with animation 97 | final bool centerMarkerOnClick; 98 | 99 | /// Increase to increase the distance away that circle spiderfied markers appear from the center 100 | final int spiderfyCircleRadius; 101 | 102 | /// Increase to increase the distance away that spiral spiderfied markers appear from the center 103 | final int spiderfySpiralDistanceMultiplier; 104 | 105 | /// Show spiral instead of circle from this marker count upwards. 106 | /// 0 -> always spiral; Infinity -> always circle 107 | final int circleSpiralSwitchover; 108 | 109 | /// Make it possible to provide custom function to calculate spiderfy shape positions 110 | final List Function(int, Point)? spiderfyShapePositions; 111 | 112 | /// Render 113 | final dynamic Function(dynamic attributes)? render; 114 | 115 | /// Function to call when a Marker is tapped 116 | final void Function(dynamic attributes, LatLng location)? onTap; 117 | 118 | FeatureLayerOptions( 119 | this.url, 120 | this.geometryType,{ 121 | this.size = const Size(30, 30), 122 | this.computeSize, 123 | this.alignment, 124 | this.maxClusterRadius = 80, 125 | this.animationsOptions = const AnimationsOptions(), 126 | this.fitBoundsOptions = 127 | const FitBoundsOptions(padding: EdgeInsets.all(12.0)), 128 | this.zoomToBoundsOnClick = true, 129 | this.centerMarkerOnClick = true, 130 | this.spiderfyCircleRadius = 40, 131 | this.spiderfySpiralDistanceMultiplier = 1, 132 | this.circleSpiralSwitchover = 9, 133 | this.spiderfyShapePositions, 134 | this.onTap, 135 | this.render, 136 | }); 137 | } 138 | -------------------------------------------------------------------------------- /lib/utils/util.dart: -------------------------------------------------------------------------------- 1 | import 'package:tuple/tuple.dart'; 2 | 3 | var _templateRe = RegExp(r'\{ *([\w_-]+) *\}'); 4 | 5 | /// Replaces the templating placeholders with the provided data map. 6 | /// 7 | /// Throws an [Exception] if any placeholder remains unresolved. 8 | String template(String str, Map data) { 9 | return str.replaceAllMapped(_templateRe, (Match match) { 10 | var value = data[match.group(1)]; 11 | if (value == null) { 12 | throw Exception('No value provided for variable ${match.group(1)}'); 13 | } else { 14 | return value; 15 | } 16 | }); 17 | } 18 | 19 | double wrapNum(double x, Tuple2 range, [bool? includeMax]) { 20 | var max = range.item2; 21 | var min = range.item1; 22 | var d = max - min; 23 | return x == max && includeMax != null ? x : ((x - min) % d + d) % d + min; 24 | } -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_map_arcgis 2 | description: Arcgis plugin for flutter map. Features Support unique render, ontap event, ontap with atttributes, geometry types (point, polgyon, polylin) 3 | version: 2.0.6 4 | homepage: https://github.com/khankhulgun/flutter_map_arcgis 5 | 6 | environment: 7 | sdk: ">=3.0.0 <4.0.0" 8 | flutter: ">=3.10.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | flutter_map: ^6.1.0 14 | dio: ^5.4.0 15 | latlong2: ^0.9.0 16 | collection: ^1.18.0 17 | tuple: ^2.0.2 18 | 19 | dev_dependencies: 20 | flutter_test: 21 | sdk: flutter 22 | 23 | # For information on the generic Dart part of this file, see the 24 | # following page: https://dart.dev/tools/pub/pubspec 25 | 26 | # The following section is specific to Flutter. 27 | flutter: 28 | # This section identifies this Flutter project as a plugin project. 29 | # The androidPackage and pluginClass identifiers should not ordinarily 30 | # be modified. They are used by the tooling to maintain consistency when 31 | # adding or updating assets for this project. 32 | plugin: 33 | platforms: 34 | android: 35 | package: mn.khankhulgun.flutter_map_arcgis 36 | pluginClass: FlutterMapArcgisPlugin 37 | ios: 38 | pluginClass: FlutterMapArcgisPlugin 39 | 40 | # To add assets to your plugin package, add an assets section, like this: 41 | # assets: 42 | # - images/a_dot_burr.jpeg 43 | # - images/a_dot_ham.jpeg 44 | # 45 | # For details regarding assets in packages, see 46 | # https://flutter.dev/assets-and-images/#from-packages 47 | # 48 | # An image asset can refer to one or more resolution-specific "variants", see 49 | # https://flutter.dev/assets-and-images/#resolution-aware. 50 | 51 | # To add custom fonts to your plugin package, add a fonts section here, 52 | # in this "flutter" section. Each entry in this list should have a 53 | # "family" key with the font family name, and a "fonts" key with a 54 | # list giving the asset and other descriptors for the font. For 55 | # example: 56 | # fonts: 57 | # - family: Schyler 58 | # fonts: 59 | # - asset: fonts/Schyler-Regular.ttf 60 | # - asset: fonts/Schyler-Italic.ttf 61 | # style: italic 62 | # - family: Trajan Pro 63 | # fonts: 64 | # - asset: fonts/TrajanPro.ttf 65 | # - asset: fonts/TrajanPro_Bold.ttf 66 | # weight: 700 67 | # 68 | # For details regarding fonts in packages, see 69 | # https://flutter.dev/custom-fonts/#from-packages 70 | -------------------------------------------------------------------------------- /test/flutter_map_arcgis_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/services.dart'; 2 | import 'package:flutter_test/flutter_test.dart'; 3 | 4 | void main() { 5 | const MethodChannel channel = MethodChannel('flutter_map_arcgis'); 6 | 7 | TestWidgetsFlutterBinding.ensureInitialized(); 8 | 9 | setUp(() { 10 | channel.setMockMethodCallHandler((MethodCall methodCall) async { 11 | return '42'; 12 | }); 13 | }); 14 | 15 | tearDown(() { 16 | channel.setMockMethodCallHandler(null); 17 | }); 18 | 19 | } 20 | --------------------------------------------------------------------------------