This repository contains showcase of Flutter stack. It is used as a base for new projects.
- Riverpod (state management)
- Freezed & json_serializable (data models, union types, JSON)
- Dio (HTTP)
- Hive (local DB)
- go_router (routing)
- Localization is done by shared Sheet document and build by flutter_localization_sheet
- Localization sheet
- Use FlutterGen
The app has two flavours:
- STAGE
- PROD
This config is given in runtime by --dart-define=environment=STAGE when running build command. Read section below how to run the right flavour app without any hassle by simple predefined commands.
- This project is build with Flutter 3.13.x
- There is [Makefile] that shortcuts all common flutter commands
$ make dependencies
$ make build-runner- Add assets
- Run FlutterGen -> run
make build-runner
Android
$ make build-android-dev
$ make build-android-prodiOS
$ make build-ios-dev
$ make build-ios-prod$ make run-dev
$ make run-prod