This project is a starting point for a Flutter application.
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.
He has a Youtube channel: https://www.youtube.com/c/ResoCoder
Add new features on feature/<feature_name>
branches, fix bugs on bugfix/
, refactor on refactor/
Make Pull Requests to develop
and assign somebody to Code Review
Don't push to main
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
...or have it on while you code:
flutter pub run build_runner watch --delete-conflicting-outputs
This will generate files with *.g.dart
or *.gr.dart
extensions
flutter run
If something is not updating after restart:
flutter clean && flutter pub get && flutter run
Update this section with any encountered issues and solutions
Build views inside presentation/<view_name>/<view_name>.dart
, keep Widget build()
functions short by splitting it into separate widgets and keeping those inside presentation/<view_name>/widgets/<widget_name>
Avoid using StatefulWidget
where possible, you should use the bloc
package with freezed
unions. Use existing blocs at lib/application/<bloc_name>
for reference on how to create a bloc.
Navigating from MyPage
to AnotherPage
(auto_router replaces Page with Route in names, see presentation/routes/app_router.dart):
AutoRouter.of(context).replace(AnotherRoute())
flutter upgrade
and check if flutter --version
is at least 2.8.1