{"id":18456396,"url":"https://github.com/nicosnicolaou16/sampleblocpatternanddriftwithsinglestate","last_synced_at":"2025-04-08T04:34:51.552Z","repository":{"id":210469269,"uuid":"726260870","full_name":"NicosNicolaou16/SampleBlocPatternAndDriftWithSingleState","owner":"NicosNicolaou16","description":"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.","archived":false,"fork":false,"pushed_at":"2024-12-23T22:20:21.000Z","size":217,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T06:41:23.601Z","etag":null,"topics":["bloc-architecture","bloc-pattern","bloc-pattern-single-state","dart","dependency-injection","dio-network-manager","drift-database","flutter","getit"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NicosNicolaou16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T22:16:09.000Z","updated_at":"2024-12-23T22:20:23.000Z","dependencies_parsed_at":"2023-12-14T21:29:41.959Z","dependency_job_id":"29e355ae-2fab-4653-b328-6d746a3abd56","html_url":"https://github.com/NicosNicolaou16/SampleBlocPatternAndDriftWithSingleState","commit_stats":null,"previous_names":["nicosnicolaou16/sampleblocpatternanddriftwithsinglestate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSampleBlocPatternAndDriftWithSingleState","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSampleBlocPatternAndDriftWithSingleState/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSampleBlocPatternAndDriftWithSingleState/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSampleBlocPatternAndDriftWithSingleState/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicosNicolaou16","download_url":"https://codeload.github.com/NicosNicolaou16/SampleBlocPatternAndDriftWithSingleState/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bloc-architecture","bloc-pattern","bloc-pattern-single-state","dart","dependency-injection","dio-network-manager","drift-database","flutter","getit"],"created_at":"2024-11-06T08:11:24.348Z","updated_at":"2025-04-08T04:34:51.540Z","avatar_url":"https://github.com/NicosNicolaou16.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Bloc Pattern And Drift With Single State\n\nThis project is an application that uses the BLoC architecture pattern with a single state, Dio as\nthe network manager, and Drift as the database solution. The database is implemented using Drift\nclasses, without the need for a Drift file.\n\n\u003e [!IMPORTANT]  \n\u003e Similar project with (Drift Class) :point_right: [SampleBlocPatternWithSingleState](https://github.com/NicosNicolaou16/SampleBlocPatternWithSingleState) :point_left: \u003cbr /\u003e\n\n# The Project Contain the following technologies and libraries\n\n[Bloc Patterns using single state](https://pub.dev/packages/flutter_bloc) along with repositories\nand services, separates business logic, data access, and UI by using streams to handle state and\nmanage data flow. ([Bloc Pattern Documentation](https://bloclibrary.dev/getting-started/)) \u003cbr /\u003e\n[Dio Network Manager](https://pub.dev/packages/dio) is responsible for making requests and\nretrieving data from the remote server. \u003cbr /\u003e\n[Cached Network Image](https://pub.dev/packages/cached_network_image) is a package that it is\nresponsible for loading the images and supports offline functionality.  \u003cbr /\u003e\n[Drift Database](https://drift.simonbinder.eu/docs/getting-started/) is responsible for saving the\nretrieved data from the remote server, querying data from the local database, and supporting offline\nfunctionality. ([Drift Database Documentation](https://pub.dev/packages/drift)) \u003cbr /\u003e\n[Get It (Dependencies Injection)](https://pub.dev/packages/get_it) is a lightweight dependency\ninjection package for Flutter that allows you to register and access services globally, promoting\ncleaner and more maintainable code.  \u003cbr /\u003e\n\n# Versioning\n\nFlutter SDK version: 3.27.1 \u003cbr /\u003e\nDart Version: 3.6.0 \u003cbr /\u003e\n\n# References/Tutorials Follow\n\nhttps://bloclibrary.dev/#/flutterinfinitelisttutorial \u003cbr /\u003e\nhttps://bloclibrary.dev/#/gettingstarted \u003cbr /\u003e\nhttps://bloclibrary.dev/#/fluttertimertutorial?id=flutter-timer-tutorial \u003cbr /\u003e\nhttps://ppantaleon.medium.com/flutter-blocbuilder-vs-blocconsumer-vs-bloclistener-a4a3ce7bfa9a \u003cbr /\u003e\nhttps://stackoverflow.com/questions/59188021/why-usually-theres-a-repository-layer-on-bloc-pattern \u003cbr /\u003e\nhttps://drift.simonbinder.eu/docs/getting-started/advanced_dart_tables/ \u003cbr /\u003e\nhttps://stackoverflow.com/questions/73811123/how-to-stop-dio-get-when-the-internet-is-off \u003cbr /\u003e\nhttps://stackoverflow.com/questions/61381265/stop-showing-error-from-http-or-dio-request \u003cbr /\u003e\nhttps://pub.dev/packages/dio#handling-errors \u003cbr /\u003e\nhttps://pub.dev/packages/get_it \u003cbr /\u003e\n\n# Feeds/Urls/End Point (parsing some data from response)\n\n## (Links References for Ends Points)\n\nhttps://github.com/r-spacex/SpaceX-API (GitHub) \u003cbr /\u003e\nhttps://docs.spacexdata.com/?version=latest (Postman) \u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicosnicolaou16%2Fsampleblocpatternanddriftwithsinglestate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicosnicolaou16%2Fsampleblocpatternanddriftwithsinglestate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicosnicolaou16%2Fsampleblocpatternanddriftwithsinglestate/lists"}