Corona Virus Spread Statistics and Map
Corona Virus statistics and spread map using 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.
Clone repositorygit clone https://github.com/hooshyar/Corona-Virus-Flutter.git
and open pubspec.yaml
runflutter packages get
Get an API key at https://cloud.google.com/maps-platform.
Enable Google Map SDK for each platform.
You can also find detailed steps to get start with Google Maps Platform here.
Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml
:
<manifest ...
<application ...
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="YOUR KEY HERE"></manifest>
In your swift code, specify your API key in the application delegate ios/Runner/AppDelegate.swift
:
import UIKit
import Flutter
import GoogleMaps
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GMSServices.provideAPIKey("YOUR KEY HERE")
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
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 simulatorflutter run