Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This project is an application that utilizes the BLoC architecture pattern, Dio for network management, and Drift for local database storage.

License

Notifications You must be signed in to change notification settings

NicosNicolaou16/SampleDriftDatabaseWithBlocPattern

Repository files navigation

Sample Drift Database With Bloc Pattern

This project is an application that utilizes the BLoC architecture pattern, Dio for network management, and Drift for local database storage.

This Project contains:

Bloc Patterns along with repositories and services, separates business logic, data access, and UI by using streams to handle state and manage data flow. (Bloc Pattern Documentation)
Dio Network Manager is responsible for making requests and retrieving data from the remote server.
Drift Database is responsible for saving the retrieved data from the remote server, querying data from the local database, and supporting offline functionality. (Drift Database Documentation)
Cached Network Image is a package that it is responsible for loading the images and supports offline functionality.

Important

Similar project with SampleBlocPatternWithSingleState

Versioning

Flutter SDK version: 3.38.5
Dart Version: 3.10.4

Feeds/Urls/End Point (parsing some data from response)

(Links References for Ends Points)

https://github.com/r-spacex/SpaceX-API (GitHub)
https://docs.spacexdata.com/?version=latest (Postman)

References

https://bloclibrary.dev/#/gettingstarted
https://bloclibrary.dev/#/fluttertimertutorial?id=flutter-timer-tutorial
https://ppantaleon.medium.com/flutter-blocbuilder-vs-blocconsumer-vs-bloclistener-a4a3ce7bfa9a
https://stackoverflow.com/questions/59188021/why-usually-theres-a-repository-layer-on-bloc-pattern
https://stackoverflow.com/questions/73811123/how-to-stop-dio-get-when-the-internet-is-off
https://stackoverflow.com/questions/61381265/stop-showing-error-from-http-or-dio-request
https://pub.dev/packages/dio#handling-errors

About

This project is an application that utilizes the BLoC architecture pattern, Dio for network management, and Drift for local database storage.

Topics

Resources

Readme

License

Apache-2.0 license

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages