From Bloc to network and back.
- Flutter Bloc with context.watch/select/read
- Hydrated Bloc
- Sealed class for Bloc states
- Retrofit
- JSON serialization
- Equatable
- Logger (a pretty one)
- Pretty Dio Logger (pretty logger interceptor)
- API Error handling
- Liquid Pull to refresh
- Dependency Injection (get_it, injectable)
- State restoration (restorablePush, restorationScopeId)
If you want the generator to run one time and exits use
flutter pub run build_runner build
Use the [watch] flag to watch the files' system for edits and rebuild as necessary.
flutter packages pub run build_runner watch
API Error handling inspired by:
- handling-network-calls-and-exceptions-in-flutter, Ashish Rawat
- android-error-handling-in-clean-architecture, Duy Pham
- retrofit.dart docs
- ApiResultInterceptor example
- GeekySingh/flutter_stacked_architecture_with_retrofit
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.