{"id":22164594,"url":"https://github.com/mrusamamuzaffar/flutter_bloc_implementation","last_synced_at":"2025-10-12T17:31:52.011Z","repository":{"id":134736573,"uuid":"589914706","full_name":"mrusamamuzaffar/flutter_bloc_implementation","owner":"mrusamamuzaffar","description":"A beautiful bloc implementation in Flutter","archived":false,"fork":false,"pushed_at":"2023-01-17T08:38:10.000Z","size":282,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:43:11.987Z","etag":null,"topics":["bloc","dart","dart-library","dart-package","dart2","dartlang","flutter","flutter-app","flutter-apps","flutter-bloc","flutter-bloc-pattern","flutter-bloc-pattern-rxdart","flutter-bloc-rxdart","flutter-boilerplate","flutter-clean-architecture","flutter-developer","flutter-examples","state","state-management"],"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/mrusamamuzaffar.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-01-17T08:37:58.000Z","updated_at":"2024-09-20T00:47:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5c77a91-0bc4-4876-9ff8-9e0f617d1474","html_url":"https://github.com/mrusamamuzaffar/flutter_bloc_implementation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrusamamuzaffar/flutter_bloc_implementation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrusamamuzaffar%2Fflutter_bloc_implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrusamamuzaffar%2Fflutter_bloc_implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrusamamuzaffar%2Fflutter_bloc_implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrusamamuzaffar%2Fflutter_bloc_implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrusamamuzaffar","download_url":"https://codeload.github.com/mrusamamuzaffar/flutter_bloc_implementation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrusamamuzaffar%2Fflutter_bloc_implementation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012191,"owners_count":26085079,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","dart","dart-library","dart-package","dart2","dartlang","flutter","flutter-app","flutter-apps","flutter-bloc","flutter-bloc-pattern","flutter-bloc-pattern-rxdart","flutter-bloc-rxdart","flutter-boilerplate","flutter-clean-architecture","flutter-developer","flutter-examples","state","state-management"],"created_at":"2024-12-02T05:08:49.152Z","updated_at":"2025-10-12T17:31:52.005Z","avatar_url":"https://github.com/mrusamamuzaffar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Weather App\n\n### Implementation\nIt includes 4 layers:\n\n1. Data layer (data provider)\n2. Repository layer\n3. Business layer (cubit/state)\n3. Presentation layer (front-end/UI)\n\nAnd you start coding them respectively. Overall concept for this architecture will be:\n\n**Your Data Layer must be hidden/abstracted from your business/presentation layer, so the point of interaction will be the repository layer**\n\n### Terminologies\n#### Barrel\n- Just a file that exports other files to clean-up imports\n\n### Extensions\n#### Bloc\n- VS Code extension: https://marketplace.visualstudio.com/items?itemName=FelixAngelov.bloc\n- Dart Data Class Generator: https://marketplace.visualstudio.com/items?itemName=hzgood.dart-data-class-generator\n\n### Project structure\n\n### Business and Presentation layer\n\n```\nlib\n    - extensions\n        - ...\n    -  screens/\n        - weather/\n            - cubits (Business layer)\n                - weather_cubit.dart\n                - weather_state.dart\n            - models\n                - models.dart (Barrel)\n            - views (Presentation layer)\n                - weather_view.dart (Entry point of UI)\n                - widgets/\n                    - error.dart\n                    - loading.dart\n                    - success.dart\n                    - widgets.dart (Barrel)\n```\n\n### Data and Repository layers\n\n```\npackages\n    - weather_data_provider/ (Data layer - Abstracted/Hidden)\n        - lib/\n            - src/\n                - models/\n                    - models.dart (barrel)\n                    - location.dart\n                    - weather.dart\n            - weather_data_provider.dart (data provider implementation)\n        - weather_data_provider (Barrel)\n\n    - weather_repository (Repository layer)\n        - lib/\n            - src/\n                - models\n                    - models.dart (barrel)\n                    - weather.dart\n            - weather_repository.dart (repository implementation)\n        - weather_repository.dart (barrel)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrusamamuzaffar%2Fflutter_bloc_implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrusamamuzaffar%2Fflutter_bloc_implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrusamamuzaffar%2Fflutter_bloc_implementation/lists"}