{"id":26038281,"url":"https://github.com/azizbekeshpolatov/flutter_api_bloc_codegen","last_synced_at":"2026-04-20T00:31:37.972Z","repository":{"id":278886755,"uuid":"937081903","full_name":"AzizbekEshpolatov/flutter_api_bloc_codegen","owner":"AzizbekEshpolatov","description":"A project built with Flutter + Bloc + Dio + Retrofit + Freezed to fetch, manage, and display data from an API efficiently in the UI.","archived":false,"fork":false,"pushed_at":"2025-02-22T11:25:51.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T09:59:50.632Z","etag":null,"topics":["build-runner","flutter-bloc","freezed","get-it","json-serializer","retrofit"],"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/AzizbekEshpolatov.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":"2025-02-22T09:39:40.000Z","updated_at":"2025-02-22T11:31:00.000Z","dependencies_parsed_at":"2025-02-22T10:28:11.998Z","dependency_job_id":"cc929aa9-93aa-4d86-98c9-1214431ce71b","html_url":"https://github.com/AzizbekEshpolatov/flutter_api_bloc_codegen","commit_stats":null,"previous_names":["azizbekeshpolatov/flutter_api_bloc_codegen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AzizbekEshpolatov/flutter_api_bloc_codegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizbekEshpolatov%2Fflutter_api_bloc_codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizbekEshpolatov%2Fflutter_api_bloc_codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizbekEshpolatov%2Fflutter_api_bloc_codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizbekEshpolatov%2Fflutter_api_bloc_codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzizbekEshpolatov","download_url":"https://codeload.github.com/AzizbekEshpolatov/flutter_api_bloc_codegen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizbekEshpolatov%2Fflutter_api_bloc_codegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32027985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"ssl_error","status_checked_at":"2026-04-20T00:17:31.068Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["build-runner","flutter-bloc","freezed","get-it","json-serializer","retrofit"],"created_at":"2025-03-07T09:13:31.972Z","updated_at":"2026-04-20T00:31:37.953Z","avatar_url":"https://github.com/AzizbekEshpolatov.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_api_bloc_codegen\n\n## uz\n\n### Loyihaning maqsadi\nUshbu loyiha siz bergan API asosida, model sinflarini va bloc kodlarini avtomatik yaratishni \nta'minlaydi. Shunday qilib, qo'lda kod yozish jarayoni kamayadi va ishlab chiqish tezlashadi.\n\n### Asosiy vazifalar\n- API interfeyslarini avtomatik generatsiya qilish\n- Model sinflarni avtomatik yaratish\n- Bloc kodini avtomatik generatsiya qilish\n- `pubspec.yaml` fayliga kerakli paketlarni qo'shish\n\n### Qanday ishlatish\n**Paketlarni qo'shish:**  \n   `pubspec.yaml` faylingizga quyidagi qismni joylashtiring:\n   ```yaml\n   dependencies:\n     dio: ^x.x.x\n     retrofit: ^x.x.x\n     json_annotation: ^x.x.x\n     flutter_bloc: ^x.x.x\n\n   dev_dependencies:\n     build_runner: ^x.x.x\n     retrofit_generator: ^x.x.x\n     json_serializable: ^x.x.x\n   ```\n\n## en\n\n### Project Purpose\nThis project aims to streamline development by automatically generating API interfaces, model classes, and bloc code based on a provided API schema. This minimizes manual coding, reduces errors, and accelerates the development process.\n\n### Theoretical Background\n- **API Interface Generation:**  \n  Automatically generating API interfaces avoids repetitive boilerplate code for network requests. By using annotations and code generators (e.g., Retrofit with Dio), the API client is consistent and less error-prone.\n\n- **Model Class Generation:**  \n  Models are generated automatically from JSON schemas or annotated classes, facilitating seamless JSON serialization and deserialization. This leverages tools like `json_serializable` to ensure data integrity and ease of maintenance.\n\n- **Bloc Code Generation:**  \n  The Bloc pattern separates business logic from UI components. Auto-generating bloc code standardizes state management, reduces manual coding, and ensures that the communication between the UI and business logic adheres to best practices.\n\n- **Integration with Flutter Ecosystem:**  \n  The project integrates popular packages such as `dio` for HTTP networking, `retrofit` for API client generation, and `flutter_bloc` for state management. The use of `build_runner` automates the code generation process, promoting rapid development and a clean project structure.\n\n### Main Features\n- Automatic generation of API interfaces\n- Automatic generation of model classes\n- Automatic generation of bloc code\n- Pre-configured dependencies for seamless integration in Flutter projects\n\n### How to Use\n  **Add Dependencies:**  \n   Include the following in your `pubspec.yaml`:\n   ```yaml\n   dependencies:\n     dio: ^x.x.x\n     retrofit: ^x.x.x\n     json_annotation: ^x.x.x\n     flutter_bloc: ^x.x.x\n\n   dev_dependencies:\n     build_runner: ^x.x.x\n     retrofit_generator: ^x.x.x\n     json_serializable: ^x.x.x\n   ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazizbekeshpolatov%2Fflutter_api_bloc_codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazizbekeshpolatov%2Fflutter_api_bloc_codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazizbekeshpolatov%2Fflutter_api_bloc_codegen/lists"}