Skip to content

NicosNicolaou16/SampleBlocPatternAndDriftWithSingleState

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Bloc Pattern And Drift With Single State

Linktree Static Badge X LinkedIn Medium Mastodon Bluesky Dev.to blog YouTube Static Badge

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 👈

🚀 Key Technologies & Libraries

  • 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 .drift files).
  • 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.

🔧 Versioning

  • Flutter SDK: 3.41.5
  • Dart Version: 3.11.3

📚 References & Tutorials

BLoC & Architecture

Networking (Dio) & Persistence (Drift)

📡 API Endpoints (Data Source)

This project parses data from the SpaceX API:

⭐ Stargazers

If you find this project useful for your Flutter development, please give it a star!
Check out the stargazers here

🙏 Support & Contributions

Feedback, bug reports, and feature requests are welcome! Feel free to open an issue or submit a pull request.

About

This project is an application that uses the BLoC architecture pattern with a single state, Dio as the network manager, and Drift as the database solution. The database is implemented using Drift classes, without the need for a Drift file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages