├── ios
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── 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-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── .gitignore
├── Podfile.lock
└── Podfile
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── manifest.json
└── index.html
├── android
├── gradle.properties
├── .gitignore
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── 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
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── corona_virus_map
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── build.gradle
├── .metadata
├── .gitignore
├── lib
├── main.dart
└── src
│ ├── screens
│ ├── special_page.dart
│ ├── Countries_card.dart
│ └── map_page.dart
│ ├── styles
│ └── style.dart
│ ├── data_provider
│ └── corona_data.dart
│ └── models
│ └── corona_model.dart
├── test
└── widget_test.dart
├── pubspec.yaml
├── README.md
├── assets
└── map_style.txt
└── pubspec.lock
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hooshyar/Corona-Virus-Flutter/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/corona_virus_map/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.corona_virus_map
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.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: 1606d878348e98fb1c401679ca8e006c7b7eb41f
8 | channel: dev
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import GoogleMaps
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GMSServices.provideAPIKey("YOUR API KEY HERE")
12 | GeneratedPluginRegistrant.register(with: self)
13 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "corona_virus_map",
3 | "short_name": "corona_virus_map",
4 | "start_url": ".",
5 | "display": "minimal-ui",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "Corona Virus statistics and spread map using flutter",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
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 |
--------------------------------------------------------------------------------
/.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 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Exceptions to above rules.
43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:corona_virus_map/src/data_provider/corona_data.dart';
2 | import 'package:corona_virus_map/src/screens/special_page.dart';
3 | import 'package:corona_virus_map/src/styles/style.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:provider/provider.dart';
6 |
7 | void main() {
8 | runApp(
9 | MultiProvider(
10 | providers: [
11 | ChangeNotifierProvider(create: (_) => CoronaProvider()),
12 | ],
13 | child: MyApp(),
14 | ),
15 | );
16 | }
17 |
18 | class MyApp extends StatelessWidget {
19 | // This widget is the root of your application.
20 | @override
21 | Widget build(BuildContext context) {
22 | return MaterialApp(
23 | title: 'Flutter corona virus map',
24 | theme: ThemeData(
25 | primarySwatch: mainColor,
26 | ),
27 | home: SpecialPage(),
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:corona_virus_map/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(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/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - flutter_plugin_android_lifecycle (0.0.1):
4 | - Flutter
5 | - google_maps_flutter (0.0.1):
6 | - Flutter
7 | - GoogleMaps
8 | - GoogleMaps (2.7.0):
9 | - GoogleMaps/Maps (= 2.7.0)
10 | - GoogleMaps/Base (2.7.0)
11 | - GoogleMaps/Maps (2.7.0):
12 | - GoogleMaps/Base
13 |
14 | DEPENDENCIES:
15 | - Flutter (from `Flutter`)
16 | - flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
17 | - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
18 |
19 | SPEC REPOS:
20 | trunk:
21 | - GoogleMaps
22 |
23 | EXTERNAL SOURCES:
24 | Flutter:
25 | :path: Flutter
26 | flutter_plugin_android_lifecycle:
27 | :path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios"
28 | google_maps_flutter:
29 | :path: ".symlinks/plugins/google_maps_flutter/ios"
30 |
31 | SPEC CHECKSUMS:
32 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
33 | flutter_plugin_android_lifecycle: 47de533a02850f070f5696a623995e93eddcdb9b
34 | google_maps_flutter: d0dd62f5a7d39bae61057eb9f52dd778d99c7c6c
35 | GoogleMaps: f79af95cb24d869457b1f961c93d3ce8b2f3b848
36 |
37 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
38 |
39 | COCOAPODS: 1.8.3
40 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | corona_virus_map
18 |
19 |
20 |
21 |
24 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/lib/src/screens/special_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:corona_virus_map/src/data_provider/corona_data.dart';
2 | import 'package:corona_virus_map/src/screens/map_page.dart';
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:provider/provider.dart';
6 |
7 | class SpecialPage extends StatefulWidget {
8 | @override
9 | _SpecialPageState createState() => _SpecialPageState();
10 | }
11 |
12 | class _SpecialPageState extends State {
13 | String whichCountry = 'none';
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | CoronaProvider coronaProvider =
18 | Provider.of(context, listen: false);
19 | return Scaffold(
20 | backgroundColor: Colors.grey[900],
21 | body: SafeArea(
22 | bottom: false,
23 | child: Container(
24 | child: Container(
25 | margin: EdgeInsets.only(top: 2, bottom: 5, right: 4, left: 4),
26 | padding: EdgeInsets.only(top: 5),
27 | child: FutureBuilder(
28 | future: coronaProvider.getCoronaData(),
29 | builder: (context, snapshot) {
30 | if (!snapshot.hasData) {
31 | return LinearProgressIndicator();
32 | }
33 |
34 | return MapPage();
35 | }),
36 | ),
37 | ),
38 | ));
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/src/styles/style.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | final Color mainColor = Colors.amber;
5 | final LinearGradient redGColor = LinearGradient(
6 | begin: Alignment.bottomCenter,
7 | end: Alignment.topCenter,
8 | colors: [
9 | Colors.red.withOpacity(0.5),
10 | Colors.red.withOpacity(0.4),
11 | Colors.red.withOpacity(0.3),
12 | Colors.red.withOpacity(0.2),
13 | Colors.red.withOpacity(0.1),
14 | Colors.transparent,
15 | Colors.transparent,
16 | Colors.transparent,
17 | ],
18 | );
19 |
20 | final LinearGradient greenGColor = LinearGradient(
21 | begin: Alignment.bottomCenter,
22 | end: Alignment.topCenter,
23 | colors: [
24 | Colors.green.withOpacity(0.5),
25 | Colors.green.withOpacity(0.4),
26 | Colors.green.withOpacity(0.3),
27 | Colors.green.withOpacity(0.2),
28 | Colors.green.withOpacity(0.1),
29 | Colors.transparent,
30 | Colors.transparent,
31 | Colors.transparent,
32 | ],
33 | );
34 |
35 | final LinearGradient amberGColor = LinearGradient(
36 | begin: Alignment.bottomCenter,
37 | end: Alignment.topCenter,
38 | colors: [
39 | Colors.amber.withOpacity(0.5),
40 | Colors.amber.withOpacity(0.4),
41 | Colors.amber.withOpacity(0.3),
42 | Colors.amber.withOpacity(0.2),
43 | Colors.amber.withOpacity(0.1),
44 | Colors.transparent,
45 | Colors.transparent,
46 | Colors.transparent,
47 | ],
48 | );
49 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | corona_virus_map
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 | io.flutter.embedded_views_preview
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/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 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.corona_virus_map"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/lib/src/data_provider/corona_data.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:corona_virus_map/src/models/corona_model.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:http/http.dart' as http;
6 | import 'package:http/http.dart';
7 |
8 | class CoronaProvider with ChangeNotifier {
9 | final List coronaCountries = [];
10 | CoronaWorld coronaWorld;
11 | bool loading = false;
12 |
13 | Future> getCoronaData() async {
14 | clearCountries();
15 | await getCoronaWorld();
16 | await _get('https://corona.lmao.ninja/countries')
17 | .catchError((e) => e.toString())
18 | .then((value) {
19 | var jsonObj;
20 | jsonObj = value;
21 | for (int i = 0; i < jsonObj.length; i++) {
22 | coronaCountries.add(
23 | CoronaCountry.fromMap(jsonObj[i]),
24 | );
25 | }
26 | return coronaCountries;
27 | });
28 | debugPrint(coronaCountries.length.toString());
29 | notifyListeners();
30 | return coronaCountries;
31 | }
32 |
33 | Future getCoronaWorld() async {
34 | await _get('https://corona.lmao.ninja/all')
35 | .catchError((e) => e.toString())
36 | .then((value) {
37 | var jsonObj;
38 | jsonObj = value;
39 |
40 | coronaWorld = CoronaWorld.fromMap(jsonObj);
41 |
42 | return coronaWorld;
43 | });
44 | notifyListeners();
45 | return coronaWorld;
46 | }
47 |
48 | Future _get(String url) async {
49 | dynamic jsonObj;
50 | String endpoint = url;
51 | try {
52 | Response response =
53 | await http.get(endpoint, headers: {"Accept": "application/json"});
54 |
55 | // Error handling
56 | if (response.statusCode != 200) {
57 | print("status code != 200");
58 | return null;
59 | }
60 | jsonObj = json.decode(response.body);
61 | } catch (e) {
62 | debugPrint('error = ' + e);
63 | }
64 |
65 | if (jsonObj is List) {
66 | return jsonObj.map((item) => item as Map).toList();
67 | }
68 |
69 | return jsonObj;
70 | }
71 |
72 | void makeLoadingFalse() {
73 | loading = false;
74 | // notifyListeners();
75 | }
76 |
77 | void makeLoadingTrue() {
78 | loading = true;
79 | // notifyListeners();
80 | }
81 |
82 | void clearCountries() {
83 | coronaCountries.clear();
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: corona_virus_map
2 | description: Corona Virus statistics and spread map using flutter
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | http:
21 | provider:
22 | google_maps_flutter: ^0.5.24+1
23 | mccounting_text: ^0.1.0
24 |
25 | flutter:
26 | sdk: flutter
27 |
28 |
29 | # The following adds the Cupertino Icons font to your application.
30 | # Use with the CupertinoIcons class for iOS style icons.
31 | cupertino_icons: ^0.1.3
32 |
33 | dev_dependencies:
34 | flutter_test:
35 | sdk: flutter
36 |
37 | # For information on the generic Dart part of this file, see the
38 | # following page: https://dart.dev/tools/pub/pubspec
39 |
40 | # The following section is specific to Flutter.
41 | flutter:
42 |
43 | # The following line ensures that the Material Icons font is
44 | # included with your application, so that you can use the icons in
45 | # the material Icons class.
46 | uses-material-design: true
47 |
48 | # To add assets to your application, add an assets section, like this:
49 | assets:
50 | - assets/map_style.txt
51 | # - images/a_dot_burr.jpeg
52 | # - images/a_dot_ham.jpeg
53 |
54 | # An image asset can refer to one or more resolution-specific "variants", see
55 | # https://flutter.dev/assets-and-images/#resolution-aware.
56 |
57 | # For details regarding adding assets from package dependencies, see
58 | # https://flutter.dev/assets-and-images/#from-packages
59 |
60 | # To add custom fonts to your application, add a fonts section here,
61 | # in this "flutter" section. Each entry in this list should have a
62 | # "family" key with the font family name, and a "fonts" key with a
63 | # list giving the asset and other descriptors for the font. For
64 | # example:
65 | # fonts:
66 | # - family: Schyler
67 | # fonts:
68 | # - asset: fonts/Schyler-Regular.ttf
69 | # - asset: fonts/Schyler-Italic.ttf
70 | # style: italic
71 | # - family: Trajan Pro
72 | # fonts:
73 | # - asset: fonts/TrajanPro.ttf
74 | # - asset: fonts/TrajanPro_Bold.ttf
75 | # weight: 700
76 | #
77 | # For details regarding fonts from package dependencies,
78 | # see https://flutter.dev/custom-fonts/#from-packages
79 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Corona Virus Map in Flutter
2 |
3 | Corona Virus statistics and spread map using flutter
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | ## Getting Started with Flutter
12 |
13 | A few resources to get you started if this is your first Flutter project:
14 |
15 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
16 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
17 |
18 | For help getting started with Flutter, view our
19 | [online documentation](https://flutter.dev/docs), which offers tutorials,
20 | samples, guidance on mobile development, and a full API reference.
21 |
22 | ## Getting started with This project
23 | Clone repository
24 | git clone https://github.com/hooshyar/Corona-Virus-Flutter.git
25 |
26 | and open pubspec.yaml
27 |
28 | run
29 | flutter packages get
30 |
31 | * Get an API key at .
32 |
33 | * Enable Google Map SDK for each platform.
34 | * Go to [Google Developers Console](https://console.cloud.google.com/).
35 | * Choose the project that you want to enable Google Maps on.
36 | * Select the navigation menu and then select "Google Maps".
37 | * Select "APIs" under the Google Maps menu.
38 | * To enable Google Maps for Android, select "Maps SDK for Android" in the "Additional APIs" section, then select "ENABLE".
39 | * To enable Google Maps for iOS, select "Maps SDK for iOS" in the "Additional APIs" section, then select "ENABLE".
40 | * Make sure the APIs you enabled are under the "Enabled APIs" section.
41 |
42 | * You can also find detailed steps to get start with Google Maps Platform [here](https://developers.google.com/maps/gmp-get-started).
43 |
44 | ### Android
45 |
46 | Specify your API key in the application manifest `android/app/src/main/AndroidManifest.xml`:
47 |
48 | ```xml
49 |
53 | ```
54 |
55 | ### iOS
56 | In your swift code, specify your API key in the application delegate `ios/Runner/AppDelegate.swift`:
57 |
58 | ```swift
59 | import UIKit
60 | import Flutter
61 | import GoogleMaps
62 |
63 | @UIApplicationMain
64 | @objc class AppDelegate: FlutterAppDelegate {
65 | override func application(
66 | _ application: UIApplication,
67 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
68 | ) -> Bool {
69 | GMSServices.provideAPIKey("YOUR KEY HERE")
70 | GeneratedPluginRegistrant.register(with: self)
71 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
72 | }
73 | }
74 | ```
75 | Opt-in to the embedded views preview by adding a boolean property to the app's `Info.plist` file
76 | with the key `io.flutter.embedded_views_preview` and the value `YES`.
77 |
78 | run app on a simulator
79 | flutter run
80 |
81 | Api by https://github.com/novelcovid/api
82 |
--------------------------------------------------------------------------------
/assets/map_style.txt:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "elementType": "geometry",
4 | "stylers": [
5 | {"color": "#212121"}
6 | ]
7 | },
8 | {
9 | "elementType": "labels.icon",
10 | "stylers": [
11 | {"visibility": "off"}
12 | ]
13 | },
14 | {
15 | "elementType": "labels.text.fill",
16 | "stylers": [
17 | {"color": "#757575"}
18 | ]
19 | },
20 | {
21 | "elementType": "labels.text.stroke",
22 | "stylers": [
23 | {"color": "#212121"}
24 | ]
25 | },
26 | {
27 | "featureType": "administrative",
28 | "elementType": "geometry",
29 | "stylers": [
30 | {"color": "#757575"}
31 | ]
32 | },
33 | {
34 | "featureType": "administrative.country",
35 | "elementType": "geometry.stroke",
36 | "stylers": [
37 | {"color": "#ed7a72"},
38 | {"saturation": -5},
39 | {"lightness": 25},
40 | {"visibility": "on"},
41 | {"weight": 0.5}
42 | ]
43 | },
44 | {
45 | "featureType": "administrative.country",
46 | "elementType": "labels.text.fill",
47 | "stylers": [
48 | {"color": "#d3cdbf"}
49 | ]
50 | },
51 | {
52 | "featureType": "administrative.land_parcel",
53 | "stylers": [
54 | {"visibility": "off"}
55 | ]
56 | },
57 | {
58 | "featureType": "administrative.locality",
59 | "elementType": "labels.text.fill",
60 | "stylers": [
61 | {"color": "#bdbdbd"}
62 | ]
63 | },
64 | {
65 | "featureType": "poi",
66 | "elementType": "labels.text.fill",
67 | "stylers": [
68 | {"color": "#757575"}
69 | ]
70 | },
71 | {
72 | "featureType": "poi.park",
73 | "elementType": "geometry",
74 | "stylers": [
75 | {"color": "#181818"}
76 | ]
77 | },
78 | {
79 | "featureType": "poi.park",
80 | "elementType": "labels.text.fill",
81 | "stylers": [
82 | {"color": "#616161"}
83 | ]
84 | },
85 | {
86 | "featureType": "poi.park",
87 | "elementType": "labels.text.stroke",
88 | "stylers": [
89 | {"color": "#1b1b1b"}
90 | ]
91 | },
92 | {
93 | "featureType": "road",
94 | "elementType": "geometry.fill",
95 | "stylers": [
96 | {"color": "#2c2c2c"}
97 | ]
98 | },
99 | {
100 | "featureType": "road",
101 | "elementType": "labels.text.fill",
102 | "stylers": [
103 | {"color": "#8a8a8a"}
104 | ]
105 | },
106 | {
107 | "featureType": "road.arterial",
108 | "elementType": "geometry",
109 | "stylers": [
110 | {"color": "#373737"}
111 | ]
112 | },
113 | {
114 | "featureType": "road.highway",
115 | "elementType": "geometry",
116 | "stylers": [
117 | {"color": "#3c3c3c"}
118 | ]
119 | },
120 | {
121 | "featureType": "road.highway.controlled_access",
122 | "elementType": "geometry",
123 | "stylers": [
124 | {"color": "#4e4e4e"}
125 | ]
126 | },
127 | {
128 | "featureType": "road.local",
129 | "elementType": "labels.text.fill",
130 | "stylers": [
131 | {"color": "#616161"}
132 | ]
133 | },
134 | {
135 | "featureType": "transit",
136 | "elementType": "labels.text.fill",
137 | "stylers": [
138 | {"color": "#757575"}
139 | ]
140 | },
141 | {
142 | "featureType": "water",
143 | "elementType": "geometry",
144 | "stylers": [
145 | {"color": "#000000"}
146 | ]
147 | }
148 | ]
149 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | generated_key_values = {}
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) do |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | generated_key_values[podname] = podpath
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | end
32 | generated_key_values
33 | end
34 |
35 | target 'Runner' do
36 | use_frameworks!
37 | use_modular_headers!
38 |
39 | # Flutter Pod
40 |
41 | copied_flutter_dir = File.join(__dir__, 'Flutter')
42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
48 |
49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
50 | unless File.exist?(generated_xcode_build_settings_path)
51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
52 | end
53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
55 |
56 | unless File.exist?(copied_framework_path)
57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
58 | end
59 | unless File.exist?(copied_podspec_path)
60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
61 | end
62 | end
63 |
64 | # Keep pod path relative so it can be checked into Podfile.lock.
65 | pod 'Flutter', :path => 'Flutter'
66 |
67 | # Plugin Pods
68 |
69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
70 | # referring to absolute paths on developers' machines.
71 | system('rm -rf .symlinks')
72 | system('mkdir -p .symlinks/plugins')
73 | plugin_pods = parse_KV_file('../.flutter-plugins')
74 | plugin_pods.each do |name, path|
75 | symlink = File.join('.symlinks', 'plugins', name)
76 | File.symlink(path, symlink)
77 | pod name, :path => File.join(symlink, 'ios')
78 | end
79 | end
80 |
81 | post_install do |installer|
82 | installer.pods_project.targets.each do |target|
83 | target.build_configurations.each do |config|
84 | config.build_settings['ENABLE_BITCODE'] = 'NO'
85 | end
86 | end
87 | end
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/src/models/corona_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | CoronaCountry coronaCountriesFromJson(String str) =>
4 | CoronaCountry.fromMap(json.decode(str));
5 |
6 | String coronaCountriesToJson(CoronaCountry data) => json.encode(data.toMap());
7 |
8 | class CoronaCountry {
9 | String country;
10 | CountryInfo countryInfo;
11 | num cases;
12 | num todayCases;
13 | num deaths;
14 | num todayDeaths;
15 | num recovered;
16 | num active;
17 | num critical;
18 | num casesPerOneMillion;
19 | num deathsPerOneMillion;
20 | num updated;
21 |
22 | CoronaCountry({
23 | this.country,
24 | this.countryInfo,
25 | this.cases,
26 | this.todayCases,
27 | this.deaths,
28 | this.todayDeaths,
29 | this.recovered,
30 | this.active,
31 | this.critical,
32 | this.casesPerOneMillion,
33 | this.deathsPerOneMillion,
34 | this.updated,
35 | });
36 |
37 | factory CoronaCountry.fromMap(Map json) => CoronaCountry(
38 | country: json["country"] == null ? null : json["country"],
39 | countryInfo: json["countryInfo"] == null
40 | ? null
41 | : CountryInfo.fromMap(json["countryInfo"]),
42 | cases: json["cases"] == null ? null : json["cases"],
43 | todayCases: json["todayCases"] == null ? null : json["todayCases"],
44 | deaths: json["deaths"] == null ? null : json["deaths"],
45 | todayDeaths: json["todayDeaths"] == null ? null : json["todayDeaths"],
46 | recovered: json["recovered"] == null ? null : json["recovered"],
47 | active: json["active"] == null ? null : json["active"],
48 | critical: json["critical"] == null ? null : json["critical"],
49 | casesPerOneMillion: json["casesPerOneMillion"] == null
50 | ? null
51 | : json["casesPerOneMillion"],
52 | deathsPerOneMillion: json["deathsPerOneMillion"] == null
53 | ? null
54 | : json["deathsPerOneMillion"],
55 | updated: json["updated"] == null ? null : json["updated"],
56 | );
57 |
58 | Map toMap() => {
59 | "country": country == null ? null : country,
60 | "countryInfo": countryInfo == null ? null : countryInfo.toMap(),
61 | "cases": cases == null ? null : cases,
62 | "todayCases": todayCases == null ? null : todayCases,
63 | "deaths": deaths == null ? null : deaths,
64 | "todayDeaths": todayDeaths == null ? null : todayDeaths,
65 | "recovered": recovered == null ? null : recovered,
66 | "active": active == null ? null : active,
67 | "critical": critical == null ? null : critical,
68 | "casesPerOneMillion":
69 | casesPerOneMillion == null ? null : casesPerOneMillion,
70 | "deathsPerOneMillion":
71 | deathsPerOneMillion == null ? null : deathsPerOneMillion,
72 | "updated": updated == null ? null : updated,
73 | };
74 | }
75 |
76 | class CountryInfo {
77 | num id;
78 | String iso2;
79 | String iso3;
80 | num lat;
81 | num long;
82 | String flag;
83 |
84 | CountryInfo({
85 | this.id,
86 | this.iso2,
87 | this.iso3,
88 | this.lat,
89 | this.long,
90 | this.flag,
91 | });
92 |
93 | factory CountryInfo.fromMap(Map json) => CountryInfo(
94 | id: json["_id"] == null ? null : json["_id"],
95 | iso2: json["iso2"] == null ? null : json["iso2"],
96 | iso3: json["iso3"] == null ? null : json["iso3"],
97 | lat: json["lat"] == null ? null : json["lat"],
98 | long: json["long"] == null ? null : json["long"],
99 | flag: json["flag"] == null ? null : json["flag"],
100 | );
101 |
102 | Map toMap() => {
103 | "_id": id == null ? null : id,
104 | "iso2": iso2 == null ? null : iso2,
105 | "iso3": iso3 == null ? null : iso3,
106 | "lat": lat == null ? null : lat,
107 | "long": long == null ? null : long,
108 | "flag": flag == null ? null : flag,
109 | };
110 | }
111 |
112 | class CoronaWorld {
113 | int cases;
114 | int deaths;
115 | int recovered;
116 | int updated;
117 | int active;
118 | int affectedCountries;
119 |
120 | CoronaWorld({
121 | this.cases,
122 | this.deaths,
123 | this.recovered,
124 | this.updated,
125 | this.active,
126 | this.affectedCountries,
127 | });
128 |
129 | factory CoronaWorld.fromMap(Map json) => CoronaWorld(
130 | cases: json["cases"] == null ? null : json["cases"],
131 | deaths: json["deaths"] == null ? null : json["deaths"],
132 | recovered: json["recovered"] == null ? null : json["recovered"],
133 | updated: json["updated"] == null ? null : json["updated"],
134 | active: json["active"] == null ? null : json["active"],
135 | affectedCountries: json["affectedCountries"] == null
136 | ? null
137 | : json["affectedCountries"],
138 | );
139 |
140 | Map toMap() => {
141 | "cases": cases == null ? null : cases,
142 | "deaths": deaths == null ? null : deaths,
143 | "recovered": recovered == null ? null : recovered,
144 | "updated": updated == null ? null : updated,
145 | "active": active == null ? null : active,
146 | "affectedCountries":
147 | affectedCountries == null ? null : affectedCountries,
148 | };
149 | }
150 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.11"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.5.2"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.4.0"
25 | boolean_selector:
26 | dependency: transitive
27 | description:
28 | name: boolean_selector
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.0.5"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.2"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.14.11"
46 | convert:
47 | dependency: transitive
48 | description:
49 | name: convert
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "2.1.1"
53 | crypto:
54 | dependency: transitive
55 | description:
56 | name: crypto
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.1.3"
60 | cupertino_icons:
61 | dependency: "direct main"
62 | description:
63 | name: cupertino_icons
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "0.1.3"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_plugin_android_lifecycle:
73 | dependency: transitive
74 | description:
75 | name: flutter_plugin_android_lifecycle
76 | url: "https://pub.dartlang.org"
77 | source: hosted
78 | version: "1.0.6"
79 | flutter_test:
80 | dependency: "direct dev"
81 | description: flutter
82 | source: sdk
83 | version: "0.0.0"
84 | google_maps_flutter:
85 | dependency: "direct main"
86 | description:
87 | name: google_maps_flutter
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "0.5.25"
91 | http:
92 | dependency: "direct main"
93 | description:
94 | name: http
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "0.12.0+4"
98 | http_parser:
99 | dependency: transitive
100 | description:
101 | name: http_parser
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "3.1.4"
105 | image:
106 | dependency: transitive
107 | description:
108 | name: image
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "2.1.4"
112 | matcher:
113 | dependency: transitive
114 | description:
115 | name: matcher
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "0.12.6"
119 | mccounting_text:
120 | dependency: "direct main"
121 | description:
122 | name: mccounting_text
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "0.1.0"
126 | meta:
127 | dependency: transitive
128 | description:
129 | name: meta
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "1.1.8"
133 | nested:
134 | dependency: transitive
135 | description:
136 | name: nested
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "0.0.4"
140 | path:
141 | dependency: transitive
142 | description:
143 | name: path
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "1.6.4"
147 | pedantic:
148 | dependency: transitive
149 | description:
150 | name: pedantic
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "1.9.0"
154 | petitparser:
155 | dependency: transitive
156 | description:
157 | name: petitparser
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "2.4.0"
161 | provider:
162 | dependency: "direct main"
163 | description:
164 | name: provider
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "4.0.4"
168 | quiver:
169 | dependency: transitive
170 | description:
171 | name: quiver
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "2.0.5"
175 | sky_engine:
176 | dependency: transitive
177 | description: flutter
178 | source: sdk
179 | version: "0.0.99"
180 | source_span:
181 | dependency: transitive
182 | description:
183 | name: source_span
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "1.5.5"
187 | stack_trace:
188 | dependency: transitive
189 | description:
190 | name: stack_trace
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "1.9.3"
194 | stream_channel:
195 | dependency: transitive
196 | description:
197 | name: stream_channel
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "2.0.0"
201 | string_scanner:
202 | dependency: transitive
203 | description:
204 | name: string_scanner
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "1.0.5"
208 | term_glyph:
209 | dependency: transitive
210 | description:
211 | name: term_glyph
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "1.1.0"
215 | test_api:
216 | dependency: transitive
217 | description:
218 | name: test_api
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "0.2.15"
222 | typed_data:
223 | dependency: transitive
224 | description:
225 | name: typed_data
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "1.1.6"
229 | vector_math:
230 | dependency: transitive
231 | description:
232 | name: vector_math
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.0.8"
236 | xml:
237 | dependency: transitive
238 | description:
239 | name: xml
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "3.5.0"
243 | sdks:
244 | dart: ">=2.4.0 <3.0.0"
245 | flutter: ">=1.12.13+hotfix.5 <2.0.0"
246 |
--------------------------------------------------------------------------------
/lib/src/screens/Countries_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:corona_virus_map/src/styles/style.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:mccounting_text/mccounting_text.dart';
4 |
5 | class CountriesCard extends StatelessWidget {
6 | final int coronaCases;
7 | final int deaths;
8 | final int recovered;
9 | final String countryName1;
10 | final String countryName2;
11 | final int todayCases;
12 | final int todayDeaths;
13 | final int critical;
14 | final Color color;
15 | final String flag;
16 |
17 | const CountriesCard(
18 | {Key key,
19 | this.coronaCases,
20 | this.deaths,
21 | this.recovered,
22 | this.color,
23 | this.countryName1,
24 | this.countryName2,
25 | this.todayCases,
26 | this.todayDeaths,
27 | this.critical,
28 | this.flag})
29 | : super(key: key);
30 | @override
31 | Widget build(BuildContext context) {
32 | return Padding(
33 | padding: const EdgeInsets.only(left: 8.0),
34 | child: ClipRRect(
35 | borderRadius: BorderRadius.circular(10.0),
36 | child: Stack(
37 | children: [
38 | Container(
39 | width: 130,
40 | height: 320,
41 | color: Colors.black87,
42 | ),
43 | Container(
44 | decoration: BoxDecoration(
45 | color: color ?? Colors.black87,
46 | gradient: _whichGColor(cases: coronaCases, deaths: deaths)),
47 | width: 130,
48 | height: 270,
49 | child: Column(
50 | children: [
51 | Divider(
52 | height: 5,
53 | color: Colors.transparent,
54 | ),
55 | Padding(
56 | padding: const EdgeInsets.only(top: 3.0),
57 | child: FittedBox(
58 | child: Text(
59 | countryName1 != null
60 | ? '$countryName1'
61 | : '$countryName2',
62 | textAlign: TextAlign.center,
63 | overflow: TextOverflow.fade,
64 | style: TextStyle(color: Colors.white),
65 | ),
66 | ),
67 | ),
68 | Padding(
69 | padding: const EdgeInsets.all(8.0),
70 | child: Divider(
71 | height: 10,
72 | color: Colors.white60,
73 | ),
74 | ),
75 |
76 | Padding(
77 | padding: const EdgeInsets.only(top: 3.0),
78 | child: McCountingText(
79 | begin: 0,
80 | end: coronaCases.toDouble(),
81 | // precision: 1,
82 | style: TextStyle(fontSize: 14, color: Colors.white),
83 | duration: Duration(seconds: 1),
84 | curve: Curves.easeInOutCubic,
85 | ),
86 | ),
87 | // Text('$coronaCases'),
88 | Text(
89 | 'Cases',
90 | textAlign: TextAlign.center,
91 | style: TextStyle(fontSize: 12, color: Colors.white),
92 | ),
93 | Divider(
94 | height: 5,
95 | ),
96 | Padding(
97 | padding: const EdgeInsets.only(top: 3.0),
98 | child: McCountingText(
99 | begin: 0,
100 | end: deaths.toDouble(),
101 | // precision: 1,
102 | style: TextStyle(fontSize: 14, color: Colors.white),
103 | duration: Duration(seconds: 1),
104 | curve: Curves.easeInOutCubic,
105 | ),
106 | ),
107 | Text(
108 | 'Deaths',
109 | textAlign: TextAlign.center,
110 | style: TextStyle(fontSize: 12, color: Colors.white),
111 | ),
112 | Divider(
113 | height: 5,
114 | ),
115 | Padding(
116 | padding: const EdgeInsets.only(top: 3.0),
117 | child: McCountingText(
118 | begin: 0,
119 | end: recovered.toDouble(),
120 | // precision: 1,
121 | style: TextStyle(fontSize: 14, color: Colors.white),
122 | duration: Duration(seconds: 1),
123 | curve: Curves.easeInOutCubic,
124 | ),
125 | ),
126 | Text(
127 | 'Recovered',
128 | textAlign: TextAlign.center,
129 | style: TextStyle(fontSize: 12, color: Colors.white),
130 | ),
131 |
132 | Padding(
133 | padding: const EdgeInsets.all(5.0),
134 | child: Divider(
135 | height: 5,
136 | color: Colors.white60,
137 | ),
138 | ),
139 | McCountingText(
140 | begin: 0,
141 | end: todayCases.toDouble(),
142 | // precision: 1,
143 | style: TextStyle(fontSize: 12, color: Colors.white),
144 | duration: Duration(seconds: 1),
145 | curve: Curves.easeInOutCubic,
146 | ),
147 | Text(
148 | 'Today Cases',
149 | textAlign: TextAlign.center,
150 | style: TextStyle(fontSize: 12, color: Colors.white),
151 | ),
152 |
153 | Padding(
154 | padding: const EdgeInsets.only(top: 3.0),
155 | child: McCountingText(
156 | begin: 0,
157 | end: todayDeaths.toDouble(),
158 | // precision: 1,
159 | style: TextStyle(fontSize: 12, color: Colors.white),
160 | duration: Duration(seconds: 1),
161 | curve: Curves.easeInOutCubic,
162 | ),
163 | ),
164 | Text(
165 | 'Today Deaths',
166 | textAlign: TextAlign.center,
167 | style: TextStyle(fontSize: 12, color: Colors.white),
168 | ),
169 | ],
170 | ),
171 | ),
172 | ],
173 | ),
174 | ),
175 | );
176 | }
177 |
178 | LinearGradient _whichGColor({int cases, int deaths}) {
179 | if (cases < 1) {
180 | return greenGColor;
181 | } else if (deaths < 1) {
182 | return amberGColor;
183 | } else {
184 | return redGColor;
185 | }
186 | }
187 | }
188 |
--------------------------------------------------------------------------------
/lib/src/screens/map_page.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:corona_virus_map/src/data_provider/corona_data.dart';
4 | import 'package:corona_virus_map/src/models/corona_model.dart';
5 | import 'package:corona_virus_map/src/screens/Countries_card.dart';
6 | import 'package:corona_virus_map/src/styles/style.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter/services.dart' show rootBundle;
9 | import 'package:google_maps_flutter/google_maps_flutter.dart';
10 | import 'package:mccounting_text/mccounting_text.dart';
11 | import 'package:provider/provider.dart';
12 |
13 | class MapPage extends StatefulWidget {
14 | @override
15 | _MapPageState createState() => _MapPageState();
16 | }
17 |
18 | class _MapPageState extends State {
19 | bool _loading = false;
20 | Completer _controller = Completer();
21 | String _mapStyle;
22 | static final CameraPosition _initCamera = CameraPosition(
23 | target: LatLng(20.4996522, 46.6305755),
24 | zoom: 3.5,
25 | );
26 |
27 | final _scrollController = ScrollController();
28 |
29 | @override
30 | void initState() {
31 | rootBundle.loadString('assets/map_style.txt').then((string) {
32 | _mapStyle = string;
33 | });
34 |
35 | super.initState();
36 | }
37 |
38 | Set circles = Set();
39 |
40 | _setCircles(List coronaCountries) async {
41 | circles.clear();
42 | for (int i = 0; i < coronaCountries.length; i++) {
43 | circles.add(
44 | Circle(
45 | circleId: CircleId(
46 | coronaCountries[i].country ?? coronaCountries[i].countryInfo.id),
47 | fillColor: _whichCircleColor(
48 | cases: coronaCountries[i].cases,
49 | deaths: coronaCountries[i].deaths),
50 | // strokeColor: Colors.redAccent.withOpacity(0.5),
51 | consumeTapEvents: true,
52 | onTap: () => _scrollController.animateTo(i * 138.toDouble(),
53 | duration: Duration(seconds: 1), curve: Curves.bounceInOut),
54 | strokeWidth: 0,
55 | radius: _whichCircleRadius(
56 | cases: coronaCountries[i].cases,
57 | deaths: coronaCountries[i].deaths),
58 | center: LatLng(
59 | coronaCountries[i].countryInfo.lat.toDouble(),
60 | coronaCountries[i].countryInfo.long.toDouble(),
61 | ),
62 | ),
63 | );
64 | }
65 | }
66 |
67 | @override
68 | Widget build(BuildContext context) {
69 | CoronaProvider coronaProvider =
70 | Provider.of(context, listen: false);
71 | _setCircles(coronaProvider.coronaCountries);
72 | return Scaffold(
73 | backgroundColor: Colors.transparent,
74 | body: Container(
75 | margin: EdgeInsets.only(bottom: 0, left: 5, right: 5),
76 | child: _loading == true
77 | ? LinearProgressIndicator()
78 | : Container(
79 | child: Stack(
80 | children: [
81 | Container(
82 | child: Column(
83 | children: [
84 | Expanded(
85 | flex: 3,
86 | child: ClipRRect(
87 | borderRadius: BorderRadius.circular(10.0),
88 | child: GoogleMap(
89 | myLocationButtonEnabled: false,
90 | compassEnabled: false,
91 | myLocationEnabled: false,
92 | mapType: MapType.normal,
93 | initialCameraPosition: _initCamera,
94 | onMapCreated: (GoogleMapController controller) {
95 | _controller.complete(controller);
96 | controller.setMapStyle(_mapStyle);
97 | },
98 | circles: circles,
99 | ),
100 | ),
101 | ),
102 | Container(
103 | height: 250,
104 | ),
105 | ],
106 | ),
107 | ),
108 | Align(
109 | alignment: Alignment.bottomCenter,
110 | child: Container(
111 | padding: EdgeInsets.only(bottom: 0),
112 | color: Colors.transparent,
113 | width: double.infinity,
114 | height: 350,
115 | child: coronaProvider.loading == true
116 | ? Container(
117 | padding: EdgeInsets.all(10.0),
118 | decoration: BoxDecoration(
119 | color: Colors.black87,
120 | borderRadius: BorderRadius.circular(8.0)),
121 | child: LinearProgressIndicator(),
122 | )
123 | : Column(
124 | children: [
125 | Container(
126 | padding: EdgeInsets.all(4.0),
127 | margin: EdgeInsets.all(4.0),
128 | child: ClipRRect(
129 | borderRadius: BorderRadius.circular(8.0),
130 | child: Container(
131 | decoration: BoxDecoration(
132 | color: Colors.black87),
133 | child: Container(
134 | height: 60,
135 | child: Column(
136 | children: [
137 | Expanded(
138 | child: GestureDetector(
139 | onTap: () => _goToLocation(
140 | CameraPosition(
141 | zoom: 2.30,
142 | bearing: 5,
143 | tilt: 3.0,
144 | target:
145 | _initCamera.target),
146 | ),
147 | child: Container(
148 | child: Row(
149 | mainAxisAlignment:
150 | MainAxisAlignment
151 | .spaceEvenly,
152 | children: [
153 | Expanded(
154 | child: Column(
155 | mainAxisAlignment:
156 | MainAxisAlignment
157 | .spaceEvenly,
158 | children: [
159 | Container(
160 | child: Text(
161 | 'Cases',
162 | style:
163 | TextStyle(
164 | fontSize:
165 | 14,
166 | color: Colors
167 | .amber,
168 | ),
169 | ),
170 | ),
171 | Container(
172 | child:
173 | McCountingText(
174 | begin: 0,
175 | end: coronaProvider
176 | .coronaWorld
177 | .cases
178 | .toDouble(),
179 | style:
180 | TextStyle(
181 | fontSize:
182 | 14,
183 | color: Colors
184 | .amber,
185 | ),
186 | ),
187 | ),
188 | ],
189 | ),
190 | ),
191 | VerticalDivider(
192 | width: 2,
193 | ),
194 | Expanded(
195 | child: Column(
196 | mainAxisAlignment:
197 | MainAxisAlignment
198 | .spaceEvenly,
199 | children: [
200 | Container(
201 | child: Text(
202 | 'Deaths',
203 | style:
204 | TextStyle(
205 | fontSize:
206 | 14,
207 | color: Colors
208 | .redAccent,
209 | ),
210 | ),
211 | ),
212 | Container(
213 | child:
214 | McCountingText(
215 | begin: 0,
216 | end: coronaProvider
217 | .coronaWorld
218 | .deaths
219 | .toDouble(),
220 | style:
221 | TextStyle(
222 | fontSize:
223 | 14,
224 | color: Colors
225 | .redAccent,
226 | ),
227 | ),
228 | ),
229 | ],
230 | ),
231 | ),
232 | VerticalDivider(
233 | width: 2,
234 | ),
235 | Expanded(
236 | child: Column(
237 | mainAxisAlignment:
238 | MainAxisAlignment
239 | .spaceEvenly,
240 | children: [
241 | Container(
242 | child: Text(
243 | 'Recovered',
244 | style:
245 | TextStyle(
246 | fontSize:
247 | 14,
248 | color: Colors
249 | .lightGreenAccent,
250 | ),
251 | ),
252 | ),
253 | Container(
254 | child:
255 | McCountingText(
256 | begin: 0,
257 | end: coronaProvider
258 | .coronaWorld
259 | .recovered
260 | .toDouble(),
261 | style:
262 | TextStyle(
263 | fontSize:
264 | 14,
265 | color: Colors
266 | .lightGreenAccent,
267 | ),
268 | ),
269 | ),
270 | ],
271 | ),
272 | ),
273 | VerticalDivider(
274 | width: 2,
275 | ),
276 | ],
277 | ),
278 | ),
279 | ),
280 | ),
281 | ],
282 | ),
283 | ),
284 | ),
285 | ),
286 | ),
287 | Container(
288 | alignment: Alignment.bottomCenter,
289 | height: 250,
290 | child: ListView.builder(
291 | controller: _scrollController,
292 | scrollDirection: Axis.horizontal,
293 | itemCount: coronaProvider
294 | .coronaCountries.length,
295 | itemBuilder: (context, index) {
296 | Color activeColor =
297 | Colors.redAccent.withOpacity(0.5);
298 | return GestureDetector(
299 | onTap: () => _goToLocation(
300 | CameraPosition(
301 | tilt: 10.5,
302 | zoom: 4.5,
303 | bearing: 4,
304 | target: LatLng(
305 | coronaProvider
306 | .coronaCountries[index]
307 | .countryInfo
308 | .lat
309 | .toDouble(),
310 | coronaProvider
311 | .coronaCountries[index]
312 | .countryInfo
313 | .long
314 | .toDouble()),
315 | ),
316 | ),
317 | child: CountriesCard(
318 | countryName1: coronaProvider
319 | .coronaCountries[index]
320 | .country,
321 | countryName2:
322 | '${coronaProvider.coronaCountries[index].countryInfo.iso2}',
323 | coronaCases: coronaProvider
324 | .coronaCountries[index].cases,
325 | deaths: coronaProvider
326 | .coronaCountries[index]
327 | .deaths,
328 | recovered: coronaProvider
329 | .coronaCountries[index]
330 | .recovered,
331 | todayCases: coronaProvider
332 | .coronaCountries[index]
333 | .todayCases,
334 | todayDeaths: coronaProvider
335 | .coronaCountries[index]
336 | .todayDeaths,
337 | critical: coronaProvider
338 | .coronaCountries[index]
339 | .critical,
340 | ),
341 | );
342 | }),
343 | ),
344 | ],
345 | ),
346 | ),
347 | ),
348 | Align(
349 | alignment: Alignment.topRight,
350 | child: Padding(
351 | padding: const EdgeInsets.only(top: 8.0, right: 8.0),
352 | child: Container(
353 | height: 55,
354 | width: 55,
355 | child: RaisedButton(
356 | color: Colors.grey[800].withOpacity(0.8),
357 | shape: RoundedRectangleBorder(
358 | borderRadius: BorderRadius.circular(50.0)),
359 | child: Align(
360 | alignment: Alignment.center,
361 | child: Icon(
362 | Icons.refresh,
363 | color: mainColor,
364 | ),
365 | ),
366 | onPressed: () {
367 | coronaProvider.getCoronaData();
368 | },
369 | ),
370 | ),
371 | ),
372 | ),
373 | ],
374 | ),
375 | ),
376 | ),
377 | );
378 | }
379 |
380 | Color _whichCircleColor({int cases, int deaths}) {
381 | if (cases < 1) {
382 | return Colors.green.withOpacity(0.5);
383 | } else if (deaths < 1) {
384 | return Colors.amber.withOpacity(0.5);
385 | } else {
386 | return Colors.red.withOpacity(0.5);
387 | }
388 | }
389 |
390 | Future _goToLocation(CameraPosition cameraPosition) async {
391 | final GoogleMapController controller = await _controller.future;
392 | controller.animateCamera(CameraUpdate.newCameraPosition(cameraPosition));
393 | }
394 |
395 | double _whichCircleRadius({int cases, int deaths}) {
396 | if (cases < 1) {
397 | return 30000.0;
398 | } else if (deaths < 1) {
399 | return 30000.0;
400 | } else {
401 | if ((cases + 1) * 1000 >= 300000) {
402 | return 100000.0;
403 | }
404 | return (cases + 1) * 300.0;
405 | }
406 | }
407 | }
408 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | B8416355564BA3F632A6C8FA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FB3193C743FE424A91DD428 /* Pods_Runner.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
36 | 4FB3193C743FE424A91DD428 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37 | 5FC4213AF2C7FB052BAA92EE /* 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 = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 7B4DFE275DE659125C1AE558 /* 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 = ""; };
42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | A4350314DC23B67B6502769A /* 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 = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | B8416355564BA3F632A6C8FA /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 2753F2EF52BFBC9B886AB969 /* Pods */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 5FC4213AF2C7FB052BAA92EE /* Pods-Runner.debug.xcconfig */,
68 | A4350314DC23B67B6502769A /* Pods-Runner.release.xcconfig */,
69 | 7B4DFE275DE659125C1AE558 /* Pods-Runner.profile.xcconfig */,
70 | );
71 | name = Pods;
72 | path = Pods;
73 | sourceTree = "";
74 | };
75 | 85FF7718419BFF45F6BB4785 /* Frameworks */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 4FB3193C743FE424A91DD428 /* Pods_Runner.framework */,
79 | );
80 | name = Frameworks;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 2753F2EF52BFBC9B886AB969 /* Pods */,
101 | 85FF7718419BFF45F6BB4785 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 97C146F11CF9000F007C117D /* Supporting Files */,
121 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
122 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
123 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
124 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
125 | );
126 | path = Runner;
127 | sourceTree = "";
128 | };
129 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
130 | isa = PBXGroup;
131 | children = (
132 | );
133 | name = "Supporting Files";
134 | sourceTree = "";
135 | };
136 | /* End PBXGroup section */
137 |
138 | /* Begin PBXNativeTarget section */
139 | 97C146ED1CF9000F007C117D /* Runner */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
142 | buildPhases = (
143 | 52E390CA4FE0E461871B3FE5 /* [CP] Check Pods Manifest.lock */,
144 | 9740EEB61CF901F6004384FC /* Run Script */,
145 | 97C146EA1CF9000F007C117D /* Sources */,
146 | 97C146EB1CF9000F007C117D /* Frameworks */,
147 | 97C146EC1CF9000F007C117D /* Resources */,
148 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
150 | A4509C8FB67F3C315A85771A /* [CP] Embed Pods Frameworks */,
151 | C7125446795731AC07BAB7C7 /* [CP] Copy Pods Resources */,
152 | );
153 | buildRules = (
154 | );
155 | dependencies = (
156 | );
157 | name = Runner;
158 | productName = Runner;
159 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
160 | productType = "com.apple.product-type.application";
161 | };
162 | /* End PBXNativeTarget section */
163 |
164 | /* Begin PBXProject section */
165 | 97C146E61CF9000F007C117D /* Project object */ = {
166 | isa = PBXProject;
167 | attributes = {
168 | LastUpgradeCheck = 1020;
169 | ORGANIZATIONNAME = "";
170 | TargetAttributes = {
171 | 97C146ED1CF9000F007C117D = {
172 | CreatedOnToolsVersion = 7.3.1;
173 | LastSwiftMigration = 1100;
174 | };
175 | };
176 | };
177 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
178 | compatibilityVersion = "Xcode 9.3";
179 | developmentRegion = en;
180 | hasScannedForEncodings = 0;
181 | knownRegions = (
182 | en,
183 | Base,
184 | );
185 | mainGroup = 97C146E51CF9000F007C117D;
186 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
187 | projectDirPath = "";
188 | projectRoot = "";
189 | targets = (
190 | 97C146ED1CF9000F007C117D /* Runner */,
191 | );
192 | };
193 | /* End PBXProject section */
194 |
195 | /* Begin PBXResourcesBuildPhase section */
196 | 97C146EC1CF9000F007C117D /* Resources */ = {
197 | isa = PBXResourcesBuildPhase;
198 | buildActionMask = 2147483647;
199 | files = (
200 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
201 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
202 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
203 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
204 | );
205 | runOnlyForDeploymentPostprocessing = 0;
206 | };
207 | /* End PBXResourcesBuildPhase section */
208 |
209 | /* Begin PBXShellScriptBuildPhase section */
210 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
211 | isa = PBXShellScriptBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | );
215 | inputPaths = (
216 | );
217 | name = "Thin Binary";
218 | outputPaths = (
219 | );
220 | runOnlyForDeploymentPostprocessing = 0;
221 | shellPath = /bin/sh;
222 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
223 | };
224 | 52E390CA4FE0E461871B3FE5 /* [CP] Check Pods Manifest.lock */ = {
225 | isa = PBXShellScriptBuildPhase;
226 | buildActionMask = 2147483647;
227 | files = (
228 | );
229 | inputFileListPaths = (
230 | );
231 | inputPaths = (
232 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
233 | "${PODS_ROOT}/Manifest.lock",
234 | );
235 | name = "[CP] Check Pods Manifest.lock";
236 | outputFileListPaths = (
237 | );
238 | outputPaths = (
239 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
240 | );
241 | runOnlyForDeploymentPostprocessing = 0;
242 | shellPath = /bin/sh;
243 | 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";
244 | showEnvVarsInLog = 0;
245 | };
246 | 9740EEB61CF901F6004384FC /* Run Script */ = {
247 | isa = PBXShellScriptBuildPhase;
248 | buildActionMask = 2147483647;
249 | files = (
250 | );
251 | inputPaths = (
252 | );
253 | name = "Run Script";
254 | outputPaths = (
255 | );
256 | runOnlyForDeploymentPostprocessing = 0;
257 | shellPath = /bin/sh;
258 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
259 | };
260 | A4509C8FB67F3C315A85771A /* [CP] Embed Pods Frameworks */ = {
261 | isa = PBXShellScriptBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | );
265 | inputPaths = (
266 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
267 | "${PODS_ROOT}/../Flutter/Flutter.framework",
268 | "${BUILT_PRODUCTS_DIR}/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle.framework",
269 | );
270 | name = "[CP] Embed Pods Frameworks";
271 | outputPaths = (
272 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
273 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_plugin_android_lifecycle.framework",
274 | );
275 | runOnlyForDeploymentPostprocessing = 0;
276 | shellPath = /bin/sh;
277 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
278 | showEnvVarsInLog = 0;
279 | };
280 | C7125446795731AC07BAB7C7 /* [CP] Copy Pods Resources */ = {
281 | isa = PBXShellScriptBuildPhase;
282 | buildActionMask = 2147483647;
283 | files = (
284 | );
285 | inputPaths = (
286 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
287 | "${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
288 | );
289 | name = "[CP] Copy Pods Resources";
290 | outputPaths = (
291 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
292 | );
293 | runOnlyForDeploymentPostprocessing = 0;
294 | shellPath = /bin/sh;
295 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
296 | showEnvVarsInLog = 0;
297 | };
298 | /* End PBXShellScriptBuildPhase section */
299 |
300 | /* Begin PBXSourcesBuildPhase section */
301 | 97C146EA1CF9000F007C117D /* Sources */ = {
302 | isa = PBXSourcesBuildPhase;
303 | buildActionMask = 2147483647;
304 | files = (
305 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
306 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
307 | );
308 | runOnlyForDeploymentPostprocessing = 0;
309 | };
310 | /* End PBXSourcesBuildPhase section */
311 |
312 | /* Begin PBXVariantGroup section */
313 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
314 | isa = PBXVariantGroup;
315 | children = (
316 | 97C146FB1CF9000F007C117D /* Base */,
317 | );
318 | name = Main.storyboard;
319 | sourceTree = "";
320 | };
321 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
322 | isa = PBXVariantGroup;
323 | children = (
324 | 97C147001CF9000F007C117D /* Base */,
325 | );
326 | name = LaunchScreen.storyboard;
327 | sourceTree = "";
328 | };
329 | /* End PBXVariantGroup section */
330 |
331 | /* Begin XCBuildConfiguration section */
332 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
348 | CLANG_WARN_EMPTY_BODY = YES;
349 | CLANG_WARN_ENUM_CONVERSION = YES;
350 | CLANG_WARN_INFINITE_RECURSION = YES;
351 | CLANG_WARN_INT_CONVERSION = YES;
352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
357 | CLANG_WARN_STRICT_PROTOTYPES = YES;
358 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
364 | ENABLE_NS_ASSERTIONS = NO;
365 | ENABLE_STRICT_OBJC_MSGSEND = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_NO_COMMON_BLOCKS = YES;
368 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
369 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
370 | GCC_WARN_UNDECLARED_SELECTOR = YES;
371 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
372 | GCC_WARN_UNUSED_FUNCTION = YES;
373 | GCC_WARN_UNUSED_VARIABLE = YES;
374 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
375 | MTL_ENABLE_DEBUG_INFO = NO;
376 | SDKROOT = iphoneos;
377 | SUPPORTED_PLATFORMS = iphoneos;
378 | TARGETED_DEVICE_FAMILY = "1,2";
379 | VALIDATE_PRODUCT = YES;
380 | };
381 | name = Profile;
382 | };
383 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
384 | isa = XCBuildConfiguration;
385 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
386 | buildSettings = {
387 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
388 | CLANG_ENABLE_MODULES = YES;
389 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
390 | ENABLE_BITCODE = NO;
391 | FRAMEWORK_SEARCH_PATHS = (
392 | "$(inherited)",
393 | "$(PROJECT_DIR)/Flutter",
394 | );
395 | INFOPLIST_FILE = Runner/Info.plist;
396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
397 | LIBRARY_SEARCH_PATHS = (
398 | "$(inherited)",
399 | "$(PROJECT_DIR)/Flutter",
400 | );
401 | PRODUCT_BUNDLE_IDENTIFIER = com.example.coronaVirusMap;
402 | PRODUCT_NAME = "$(TARGET_NAME)";
403 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
404 | SWIFT_VERSION = 5.0;
405 | VERSIONING_SYSTEM = "apple-generic";
406 | };
407 | name = Profile;
408 | };
409 | 97C147031CF9000F007C117D /* Debug */ = {
410 | isa = XCBuildConfiguration;
411 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
412 | buildSettings = {
413 | ALWAYS_SEARCH_USER_PATHS = NO;
414 | CLANG_ANALYZER_NONNULL = YES;
415 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
416 | CLANG_CXX_LIBRARY = "libc++";
417 | CLANG_ENABLE_MODULES = YES;
418 | CLANG_ENABLE_OBJC_ARC = YES;
419 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
420 | CLANG_WARN_BOOL_CONVERSION = YES;
421 | CLANG_WARN_COMMA = YES;
422 | CLANG_WARN_CONSTANT_CONVERSION = YES;
423 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
424 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
425 | CLANG_WARN_EMPTY_BODY = YES;
426 | CLANG_WARN_ENUM_CONVERSION = YES;
427 | CLANG_WARN_INFINITE_RECURSION = YES;
428 | CLANG_WARN_INT_CONVERSION = YES;
429 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
430 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
431 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
432 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
433 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
434 | CLANG_WARN_STRICT_PROTOTYPES = YES;
435 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
436 | CLANG_WARN_UNREACHABLE_CODE = YES;
437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
439 | COPY_PHASE_STRIP = NO;
440 | DEBUG_INFORMATION_FORMAT = dwarf;
441 | ENABLE_STRICT_OBJC_MSGSEND = YES;
442 | ENABLE_TESTABILITY = YES;
443 | GCC_C_LANGUAGE_STANDARD = gnu99;
444 | GCC_DYNAMIC_NO_PIC = NO;
445 | GCC_NO_COMMON_BLOCKS = YES;
446 | GCC_OPTIMIZATION_LEVEL = 0;
447 | GCC_PREPROCESSOR_DEFINITIONS = (
448 | "DEBUG=1",
449 | "$(inherited)",
450 | );
451 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
452 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
453 | GCC_WARN_UNDECLARED_SELECTOR = YES;
454 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
455 | GCC_WARN_UNUSED_FUNCTION = YES;
456 | GCC_WARN_UNUSED_VARIABLE = YES;
457 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
458 | MTL_ENABLE_DEBUG_INFO = YES;
459 | ONLY_ACTIVE_ARCH = YES;
460 | SDKROOT = iphoneos;
461 | TARGETED_DEVICE_FAMILY = "1,2";
462 | };
463 | name = Debug;
464 | };
465 | 97C147041CF9000F007C117D /* Release */ = {
466 | isa = XCBuildConfiguration;
467 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
468 | buildSettings = {
469 | ALWAYS_SEARCH_USER_PATHS = NO;
470 | CLANG_ANALYZER_NONNULL = YES;
471 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
472 | CLANG_CXX_LIBRARY = "libc++";
473 | CLANG_ENABLE_MODULES = YES;
474 | CLANG_ENABLE_OBJC_ARC = YES;
475 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
476 | CLANG_WARN_BOOL_CONVERSION = YES;
477 | CLANG_WARN_COMMA = YES;
478 | CLANG_WARN_CONSTANT_CONVERSION = YES;
479 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
480 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
481 | CLANG_WARN_EMPTY_BODY = YES;
482 | CLANG_WARN_ENUM_CONVERSION = YES;
483 | CLANG_WARN_INFINITE_RECURSION = YES;
484 | CLANG_WARN_INT_CONVERSION = YES;
485 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
486 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
487 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
488 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
489 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
490 | CLANG_WARN_STRICT_PROTOTYPES = YES;
491 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
492 | CLANG_WARN_UNREACHABLE_CODE = YES;
493 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
494 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
495 | COPY_PHASE_STRIP = NO;
496 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
497 | ENABLE_NS_ASSERTIONS = NO;
498 | ENABLE_STRICT_OBJC_MSGSEND = YES;
499 | GCC_C_LANGUAGE_STANDARD = gnu99;
500 | GCC_NO_COMMON_BLOCKS = YES;
501 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
502 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
503 | GCC_WARN_UNDECLARED_SELECTOR = YES;
504 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
505 | GCC_WARN_UNUSED_FUNCTION = YES;
506 | GCC_WARN_UNUSED_VARIABLE = YES;
507 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
508 | MTL_ENABLE_DEBUG_INFO = NO;
509 | SDKROOT = iphoneos;
510 | SUPPORTED_PLATFORMS = iphoneos;
511 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
512 | TARGETED_DEVICE_FAMILY = "1,2";
513 | VALIDATE_PRODUCT = YES;
514 | };
515 | name = Release;
516 | };
517 | 97C147061CF9000F007C117D /* Debug */ = {
518 | isa = XCBuildConfiguration;
519 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
520 | buildSettings = {
521 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
522 | CLANG_ENABLE_MODULES = YES;
523 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
524 | ENABLE_BITCODE = NO;
525 | FRAMEWORK_SEARCH_PATHS = (
526 | "$(inherited)",
527 | "$(PROJECT_DIR)/Flutter",
528 | );
529 | INFOPLIST_FILE = Runner/Info.plist;
530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
531 | LIBRARY_SEARCH_PATHS = (
532 | "$(inherited)",
533 | "$(PROJECT_DIR)/Flutter",
534 | );
535 | PRODUCT_BUNDLE_IDENTIFIER = com.example.coronaVirusMap;
536 | PRODUCT_NAME = "$(TARGET_NAME)";
537 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
538 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
539 | SWIFT_VERSION = 5.0;
540 | VERSIONING_SYSTEM = "apple-generic";
541 | };
542 | name = Debug;
543 | };
544 | 97C147071CF9000F007C117D /* Release */ = {
545 | isa = XCBuildConfiguration;
546 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
547 | buildSettings = {
548 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
549 | CLANG_ENABLE_MODULES = YES;
550 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
551 | ENABLE_BITCODE = NO;
552 | FRAMEWORK_SEARCH_PATHS = (
553 | "$(inherited)",
554 | "$(PROJECT_DIR)/Flutter",
555 | );
556 | INFOPLIST_FILE = Runner/Info.plist;
557 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
558 | LIBRARY_SEARCH_PATHS = (
559 | "$(inherited)",
560 | "$(PROJECT_DIR)/Flutter",
561 | );
562 | PRODUCT_BUNDLE_IDENTIFIER = com.example.coronaVirusMap;
563 | PRODUCT_NAME = "$(TARGET_NAME)";
564 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
565 | SWIFT_VERSION = 5.0;
566 | VERSIONING_SYSTEM = "apple-generic";
567 | };
568 | name = Release;
569 | };
570 | /* End XCBuildConfiguration section */
571 |
572 | /* Begin XCConfigurationList section */
573 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
574 | isa = XCConfigurationList;
575 | buildConfigurations = (
576 | 97C147031CF9000F007C117D /* Debug */,
577 | 97C147041CF9000F007C117D /* Release */,
578 | 249021D3217E4FDB00AE95B9 /* Profile */,
579 | );
580 | defaultConfigurationIsVisible = 0;
581 | defaultConfigurationName = Release;
582 | };
583 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
584 | isa = XCConfigurationList;
585 | buildConfigurations = (
586 | 97C147061CF9000F007C117D /* Debug */,
587 | 97C147071CF9000F007C117D /* Release */,
588 | 249021D4217E4FDB00AE95B9 /* Profile */,
589 | );
590 | defaultConfigurationIsVisible = 0;
591 | defaultConfigurationName = Release;
592 | };
593 | /* End XCConfigurationList section */
594 | };
595 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
596 | }
597 |
--------------------------------------------------------------------------------