项目作者: hooshyar

项目描述 :
Corona Virus Spread Statistics and Map
高级语言: Dart
项目地址: git://github.com/hooshyar/Corona-Virus-Flutter.git
创建时间: 2020-04-01T17:53:31Z
项目社区:https://github.com/hooshyar/Corona-Virus-Flutter

开源协议:

下载


Corona Virus Map in Flutter

Corona Virus statistics and spread map using flutter


gif 1
image 2

Getting Started with Flutter

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

Getting started with This project

Clone repository
git clone https://github.com/hooshyar/Corona-Virus-Flutter.git

and open pubspec.yaml

run
flutter packages get

  • Get an API key at https://cloud.google.com/maps-platform.

  • Enable Google Map SDK for each platform.

    • Go to Google Developers Console.
    • Choose the project that you want to enable Google Maps on.
    • Select the navigation menu and then select “Google Maps”.
    • Select “APIs” under the Google Maps menu.
    • To enable Google Maps for Android, select “Maps SDK for Android” in the “Additional APIs” section, then select “ENABLE”.
    • To enable Google Maps for iOS, select “Maps SDK for iOS” in the “Additional APIs” section, then select “ENABLE”.
    • Make sure the APIs you enabled are under the “Enabled APIs” section.
  • You can also find detailed steps to get start with Google Maps Platform here.

Android

Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml:

  1. <manifest ...
  2. <application ...
  3. <meta-data android:name="com.google.android.geo.API_KEY"
  4. android:value="YOUR KEY HERE"></manifest>

iOS

In your swift code, specify your API key in the application delegate ios/Runner/AppDelegate.swift:

  1. import UIKit
  2. import Flutter
  3. import GoogleMaps
  4. @UIApplicationMain
  5. @objc class AppDelegate: FlutterAppDelegate {
  6. override func application(
  7. _ application: UIApplication,
  8. didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  9. ) -> Bool {
  10. GMSServices.provideAPIKey("YOUR KEY HERE")
  11. GeneratedPluginRegistrant.register(with: self)
  12. return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  13. }
  14. }

Opt-in to the embedded views preview by adding a boolean property to the app’s Info.plist file
with the key io.flutter.embedded_views_preview and the value YES.

run app on a simulator
flutter run

Api by https://github.com/novelcovid/api