{"id":24809669,"url":"https://github.com/mohanedzekry/flutter-injectable-example","last_synced_at":"2025-08-23T14:32:12.503Z","repository":{"id":76279348,"uuid":"579105615","full_name":"MohanedZekry/flutter-injectable-example","owner":"MohanedZekry","description":"This is an example of how to implement Dependency Injection in your own Flutter project.","archived":false,"fork":false,"pushed_at":"2022-12-16T17:31:39.000Z","size":100,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T12:46:23.704Z","etag":null,"topics":["bloc","clean-architecture","dart","dependancy-injection","equatable","flutter","injectable","routing","servicelocator"],"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/MohanedZekry.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,"zenodo":null}},"created_at":"2022-12-16T17:12:53.000Z","updated_at":"2024-11-14T10:59:50.000Z","dependencies_parsed_at":"2023-03-11T22:05:35.686Z","dependency_job_id":null,"html_url":"https://github.com/MohanedZekry/flutter-injectable-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MohanedZekry/flutter-injectable-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fflutter-injectable-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fflutter-injectable-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fflutter-injectable-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fflutter-injectable-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohanedZekry","download_url":"https://codeload.github.com/MohanedZekry/flutter-injectable-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fflutter-injectable-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271752100,"owners_count":24814745,"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-08-23T02:00:09.327Z","response_time":69,"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","clean-architecture","dart","dependancy-injection","equatable","flutter","injectable","routing","servicelocator"],"created_at":"2025-01-30T11:15:04.772Z","updated_at":"2025-08-23T14:32:12.483Z","avatar_url":"https://github.com/MohanedZekry.png","language":"Dart","readme":"## Flutter Injectable Example ##\n\nThis is an example of how to implement Dependency Injection in your own Flutter project.\n\n## Requirements ##\n- [Get-It](https://pub.dev/packages/get_it)\n- [Injectable](https://pub.dev/packages/injectable)\n- [BLoC](https://pub.dev/packages/flutter_bloc)\n- [GoRouter](https://pub.dev/packages/go_router)\n- [Equatable](https://pub.dev/packages/equatable)\n\n## How to Add Dependencies\n\nTo add a dependency, all you need to do is call this code below:\n\n```\n@InjectableInit\nvoid configureDependencies() =\u003e getIt.init();  \n```\n\nTo handle the generation file run this command on your terminal \n```\nflutter pub run build_runner build --delete-conflicting-outputs\n```\nIt will generates a new file 'injection.config.dart', which will include all dependencies for all use cases.\n\nand on your main func\n```\nvoid main() {\n  configureDependencies(); \n  ........\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanedzekry%2Fflutter-injectable-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohanedzekry%2Fflutter-injectable-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanedzekry%2Fflutter-injectable-example/lists"}