evc_google_maps_demo
evc_google_maps_demo copied to clipboard
Flutter Electric Vehicles Charging Stations Map Demo
Flutter Stations Map App
Project info
- This project is a app that shows a map with Electric Charging Stations and their information. The app supports station markers clustering.
- The app runs on Android, iOS and Web.
- The app is built using Flutter 3.3 and Dart.
- The app is built using the MVVM architecture.
- The app is built using the BLoC pattern.
Demo
https://user-images.githubusercontent.com/42183561/220624033-6834b985-5027-4b1c-b5b0-f18ffe84f5f8.mp4
How to run the app
- Clone the project.
git clone https://github.com/extrawest/evc_google_maps_demo.git
- Open the project.
cd your_name_here
- Get packages.
flutter pub get
- Configure firebase project with flutterfire.
flutterfire configure
- Run the app with your api key for the map as additional run argument.
flutter run --dart-define MAP_API_KEY="{YOUR_API_KEY_HERE}"
At this point you should be able to run the app on your device or emulator.
Firebase hosting
- In order to deploy this app to Firebase hosting, follow these commands
- Login to firebase.
firebase login
- Initialize firebase.
firebase init
- Choose account, then choose Hosting as an option.
- Select Firebase project
- Select public directory for your hosting build/web (default)
- Configure as a single-page app
- Build the project if you haven't yet
flutter build web
- Deploy to firebase.
firebase deploy
Created by Oleksii Melnychenko
Extrawest.com, 2022