Clean Architecture for Flutter
This is a simple for Clean Architecture using the Provider Pattern
flutter run --flavor dev --dart-define=FLAVOR=dev
If using the another library not build with null-safety. Please run with argument flutter run --no-sound-null-safety
Framework
iOS
Android
If added some assets or fonts
If added some models for api results
flutter packages pub run build_runner build --delete-conflicting-outputs
Example: After created the test class, and run command below, the mock class MockMovieRepository
will auto generate
@GenerateMocks([MovieRepository])
void main() {
late MovieRepository repository;
}
flutter pub run build_runner build --delete-conflicting-outputs
fluttergen -c pubspec.yaml
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.