An advanced boilerplate project demonstrating the BLoC architecture with a Single State approach, using Dio for networking and Drift for local persistence.
Important
Looking for a similar project using standard Drift classes?
👉 SampleBlocPatternWithSingleState 👈
- Bloc Pattern (Single State): Manages business logic and UI state through a streamlined single-state flow.
- Drift Database: A reactive persistence library. This project implements the database using pure Dart classes (no
.driftfiles). - Dio Network Manager: Handles robust HTTP requests and remote data fetching.
- Get It: Service locator for clean Dependency Injection.
- Cached Network Image: Efficient image loading with offline support.
- Flutter SDK: 3.41.5
- Dart Version: 3.11.3
- Official Flutter Infinite List Tutorial
- BLoC Getting Started Guide
- Flutter Timer Tutorial
- BlocBuilder vs BlocConsumer vs BlocListener
- Why use a Repository Layer?
This project parses data from the SpaceX API:
- GitHub: r-spacex/SpaceX-API
- Documentation: SpaceX Postman Docs
If you find this project useful for your Flutter development, please give it a star!
Check out the stargazers here
Feedback, bug reports, and feature requests are welcome! Feel free to open an issue or submit a pull request.