🗺 Location Selector App
Application that allows the user to select a location on the map dynamically and convert it into a readable address.
📝 Objective
First of all, this project was built to test the Riverpod with Flutter Hooks and how I could use them with a folder structure based on clean architecture concepts.
In addition, it was time to test how to use --dart-define
to set environment variables and how to call it in native code, specially android.
📲 Getting Started
Installing
Cloning the Repository
$ git clone https://github.com/gabrielvictorjs/location_selector_app.git
$ cd location_selector_app
Installing dependencies
$ flutter pub get
Google Maps Settings
- Get an API key at https://cloud.google.com/maps-platform/.
- Enable Google Map SDK for each platform and enable Geocoding API.
Running
$ flutter run --dart-define GOOGLE_MAPS_KEY=<Your Google Maps Key>
⚙ Build With
Flutter SDK v1.22.6
- Flutter Hooks Object that manages a
Widget
life-cycles - Hooks Riverpod State and dependency manager
- Dartz Functional programing elements in dart
- Equatable Equality comparison simplifier
- Freezed Code generator for unions/pattern-matching/copy
- Dio Http client for Dart
- Google Maps Flutter Google map
Widget
- Geolocator Geolocation plugin
- Flutter Svg SVG rendering