{"id":24543732,"url":"https://github.com/mushthak/user_list_app","last_synced_at":"2026-04-16T11:02:43.017Z","repository":{"id":271661632,"uuid":"913945903","full_name":"mushthak/user_list_app","owner":"mushthak","description":"A Flutter application showcasing Clean Architecture, SOLID principles, and modern development practices. Features include user management with local storage, comprehensive testing, and a well-structured codebase perfect for learning or as a template for production apps.","archived":false,"fork":false,"pushed_at":"2025-01-09T05:40:31.000Z","size":298,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T08:09:00.784Z","etag":null,"topics":["clean-architecture","clean-code","dart","dependency-injection","error-handling","flutter","local-storage","mocking","mockito","repository-pattern","solid-principles","state-management","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mushthak.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":"2025-01-08T16:47:47.000Z","updated_at":"2025-01-09T05:40:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d492afe-2b9f-4203-9e0a-57f873763297","html_url":"https://github.com/mushthak/user_list_app","commit_stats":null,"previous_names":["mushthak/user_list_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mushthak/user_list_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushthak%2Fuser_list_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushthak%2Fuser_list_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushthak%2Fuser_list_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushthak%2Fuser_list_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mushthak","download_url":"https://codeload.github.com/mushthak/user_list_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushthak%2Fuser_list_app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270170666,"owners_count":24539362,"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-13T02:00:09.904Z","response_time":66,"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":["clean-architecture","clean-code","dart","dependency-injection","error-handling","flutter","local-storage","mocking","mockito","repository-pattern","solid-principles","state-management","unit-testing"],"created_at":"2025-01-22T20:14:55.117Z","updated_at":"2026-04-16T11:02:43.011Z","avatar_url":"https://github.com/mushthak.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User List App\n\nA Flutter application demonstrating clean architecture, SOLID principles, and best practices in mobile app development.\n\n## Project Overview\n\nThe User List App is a demonstration of how to build a scalable and maintainable Flutter application. It implements a simple user management system with features to view, add, and delete users while showcasing various software engineering principles and best practices.\n\n## Architecture\n\nThe project follows Clean Architecture principles, divided into three main layers:\n\n### 1. Domain Layer\n- Contains business logic and rules\n- Defines entities and repository interfaces\n- Houses use cases that encapsulate business operations\n- Independent of any external frameworks\n\n### 2. Data Layer\n- Implements repository interfaces\n- Handles data operations and transformations\n- Manages local storage through data sources\n- Implements caching mechanisms\n\n### 3. Presentation Layer\n- Contains UI components and controllers\n- Manages state and user interactions\n- Implements the user interface using Flutter widgets\n\n## SOLID Principles Implementation\n\n### Single Responsibility Principle (SRP)\n- Each use case handles one specific operation (GetUsers, AddUser, DeleteUser)\n- Repository implementation focuses solely on data operations\n- Controllers are responsible only for UI state management\n- Data sources handle only storage operations\n\n### Open/Closed Principle (OCP)\n- Repository interfaces allow new implementations without modifying existing code\n- Use cases can be extended without changing existing ones\n- Failure handling system is extensible with new failure types\n\n### Liskov Substitution Principle (LSP)\n- Repository implementations properly substitute their interfaces\n- Models extend entities without breaking behavior\n- All implementations can be substituted with their base types\n\n### Interface Segregation Principle (ISP)\n- Repository interfaces are focused and minimal\n- Use cases have specific interfaces for their needs\n- Data source interfaces include only necessary methods\n\n### Dependency Inversion Principle (DIP)\n- High-level modules depend on abstractions\n- Low-level modules implement abstractions\n- Dependencies are injected through constructors\n- Dependency injection container manages object creation\n\n## Best Practices\n\n### Error Handling\n- Consistent use of Either type for error handling\n- Well-defined failure types\n- Descriptive error messages with context\n- Proper error propagation through layers\n\n### Testing\n- Comprehensive unit tests\n- Mock objects for testing\n- Test coverage monitoring\n- Testable architecture design\n\n### Code Organization\n- Feature-based folder structure\n- Clear separation of concerns\n- Consistent naming conventions\n- Clean and maintainable code\n\n### State Management\n- Centralized state management\n- Predictable state updates\n- Clear state transitions\n- Efficient UI updates\n\n### Dependency Management\n- Proper dependency injection\n- Clear dependency graph\n- Manageable dependencies\n- Easy dependency updates\n\n## Project Structure\n\n```\nlib/\n├── core/\n│   ├── base/\n│   │   ├── base_state.dart\n│   │   └── base_view_model.dart\n│   ├── error/\n│   │   └── failures.dart\n│   ├── usecase/\n│   │   └── usecase.dart\n│   └── config/\n│       └── environment.dart\n├── features/\n│   └── user_list/\n│       ├── data/\n│       │   ├── datasources/\n│       │   ├── models/\n│       │   └── repositories/\n│       ├── domain/\n│       │   ├── entities/\n│       │   ├── repositories/\n│       │   └── usecases/\n│       └── presentation/\n│           ├── controllers/\n│           ├── pages/\n│           └── state/\n└── injection_container.dart\n```\n\n## Getting Started\n\n1. Clone the repository\n2. Run `flutter pub get` to install dependencies\n3. Run `flutter test` to execute tests\n4. Run `flutter run` to start the application\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmushthak%2Fuser_list_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmushthak%2Fuser_list_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmushthak%2Fuser_list_app/lists"}