https://github.com/hooshyar/corona-virus-flutter
Corona Virus Spread Statistics and Map
https://github.com/hooshyar/corona-virus-flutter
coronavirus-info coronavirus-real-time coronavirus-tracking flutter google-maps-api
Last synced: 8 months ago
JSON representation
Corona Virus Spread Statistics and Map
- Host: GitHub
- URL: https://github.com/hooshyar/corona-virus-flutter
- Owner: hooshyar
- Created: 2020-04-01T17:53:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T18:54:24.000Z (about 6 years ago)
- Last Synced: 2025-08-31T18:41:40.396Z (9 months ago)
- Topics: coronavirus-info, coronavirus-real-time, coronavirus-tracking, flutter, google-maps-api
- Language: Dart
- Size: 78.1 KB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Corona Virus Map in Flutter
Corona Virus statistics and spread map using flutter
## Getting Started with Flutter
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), 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 .
* Enable Google Map SDK for each platform.
* Go to [Google Developers Console](https://console.cloud.google.com/).
* 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](https://developers.google.com/maps/gmp-get-started).
### Android
Specify your API key in the application manifest `android/app/src/main/AndroidManifest.xml`:
```xml
```
### iOS
In your swift code, specify your API key in the application delegate `ios/Runner/AppDelegate.swift`:
```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 simulator
flutter run
Api by https://github.com/novelcovid/api