{"id":19336373,"url":"https://github.com/ahmad-hamwi/pokedex-flutter","last_synced_at":"2025-04-23T01:30:46.246Z","repository":{"id":181705223,"uuid":"579175578","full_name":"Ahmad-Hamwi/pokedex-flutter","owner":"Ahmad-Hamwi","description":"Pokedex demonstrates modern Flutter development with Clean Architecture, Bloc state management, Error Handling, Automated Testing, CI/CD, and more.","archived":false,"fork":false,"pushed_at":"2023-09-16T22:03:35.000Z","size":27594,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T06:05:30.265Z","etag":null,"topics":["bloc","caching","ci-cd","clean-architecture","dio","error-handling","flutter","http","integration-testing","mocking","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ahmad-Hamwi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-16T21:17:54.000Z","updated_at":"2024-09-03T09:17:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ae6d1a3-1b3e-474d-a0ac-01a89eecfae6","html_url":"https://github.com/Ahmad-Hamwi/pokedex-flutter","commit_stats":null,"previous_names":["ahmad-hamwi/pokedex-flutter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmad-Hamwi%2Fpokedex-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmad-Hamwi%2Fpokedex-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmad-Hamwi%2Fpokedex-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmad-Hamwi%2Fpokedex-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ahmad-Hamwi","download_url":"https://codeload.github.com/Ahmad-Hamwi/pokedex-flutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352149,"owners_count":21416450,"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","caching","ci-cd","clean-architecture","dio","error-handling","flutter","http","integration-testing","mocking","unit-testing"],"created_at":"2024-11-10T03:10:48.215Z","updated_at":"2025-04-23T01:30:46.239Z","avatar_url":"https://github.com/Ahmad-Hamwi.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pokedex\n![main-ci-cd workflow](https://github.com/Ahmad-Hamwi/pokedex-flutter/actions/workflows/main-ci-cd.yml/badge.svg)\n![development-ci workflow](https://github.com/Ahmad-Hamwi/pokedex-flutter/actions/workflows/development-ci.yml/badge.svg)\n\nPokedex demonstrates modern Flutter development with Clean Architecture, Bloc for state management, Widget reusability, Unit Testing with Mockito, Error Handling, and more! \n\n\u003cdiv align=\"middle\"\u003e\n    \u003cp\u003e\n        \u003cimg src=\"./previews/banner.png\" height=\"500\"/\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\n## Key Points kept in mind while development\n\n\u003cimg src=\"./previews/demo.gif\" height=\"600\" align=\"right\"/\u003e\n\n- Code Readability\n- Reusable widget usage\n- Unit Testing where needed\n- Good State Management\n- UI matching the original designs\n- UI for various screen sizes\n- Error handling\n- Empty data handling\n\n## Technologies - Architectures - Libraries\n\n- Clean Architecture.\n- Bloc for State Management.\n- Repository and Datasources Pattern.\n- Grid Pagination.\n- Mockito in Unit Testing .\n- Get-it for Dependency Injection.\n- Dio for network calls.\n- Shared Preferences for caching.\n\n## Data API \u0026 Figma Designs\n\n- The Pokemons are fetched from this API: https://pokeapi.co\n- You can access to the designs of the application from this [Figma link](https://www.figma.com/file/vP3TT058xIqpOv5zv7cUg9/Pokedex-Assessment?node-id=32%3A83).\n- You need to have a Figma account to see the all details.\n- You can click the **Present** button from top right, to see different flows.\n- You can use the static assets in the designs, if required.\n\n\u003cimg src=\"./previews/designs.png\" /\u003e\n\n## Features Implemented\n\n### Splash Screen\n\n  - Shown for a brief moment while application is starting.\n\n\u003cp\u003e\n  \u003cimg src=\"./previews/splash.png\" height=\"400\"/\u003e\n\u003c/p\u003e\n\n### All Pokemons Tab\n  - Pagination is used since there are lots of Pokemons to be listed coming from API.\n  - All Pokemons are listed on this tab.\n  - Progress indicators are used while Pokemons are being fetched.\n  - Background colors are determined from the Pokemon's type, each mapped to a specific color.\n\u003cp\u003e\n  \u003cimg src=\"./previews/data_loaded.png\" height=\"400\"/\u003e\n  \u003cimg src=\"./previews/page_first_error.png\" height=\"400\"/\u003e\n  \u003cimg src=\"./previews/page_second_error.png\" height=\"400\"/\u003e\n\u003c/p\u003e\n\n### Favourites Tab\n  - When a Pokemon is marked as favourite by clicking **Mark as favourite** button on the **Pokemon details page**, it should be shown on this tab.\n  - The number of Pokemons marked as favourite are shown near the tab's text.\n  - Pokemons that are marked as favourite are persistent is stored on disk. So, after a Pokemon is marked as favourite, it should still be shown under **Favourites** tab even after application is closed and started again.\n\n\u003cp\u003e\n  \u003cimg src=\"./previews/favourites_loaded.png\" height=\"400\"/\u003e\n  \u003cimg src=\"./previews/favourites_empty.png\" height=\"400\"/\u003e\n\u003c/p\u003e\n\n### Pokemon Details Page\n  - BMI is calculated using this formula: **weight / (height^2)** without caring any units.\n  - **Avg. Power** under **Base stats** is calculated using formula: **(Hp + Attack + Defense + Special Attack + Special Defense + Speed) / 6**\n  - **Remove from favourites** button removes the related Pokemon from the list shown on **Favourites** tab.\n  - Bars colors under **Base stats** are determined by the their magnitudes. \n\n\u003cp\u003e\n  \u003cimg src=\"./previews/details_expanded.png\" height=\"400\"/\u003e\n  \u003cimg src=\"./previews/details_collapsed.png\" height=\"400\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmad-hamwi%2Fpokedex-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmad-hamwi%2Fpokedex-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmad-hamwi%2Fpokedex-flutter/lists"}