How mahmoudalbndkji/flutter-clean-architecture-tdd-template works
Project type and purpose
• This is a Flutter mobile application template built with a strict Clean Architecture layering and a Test-Driven Development approach.
• It provides a sample “Tasks” feature showcasing how presentation, domain, and data layers interact, with dependency injection (get_it) and BLoC/Cubit state management.
File structure
• Top-level:
• android/ & ios/ – platform-specific wrappers and build scripts
• lib/ – Dart source code following a feature-first, layered design
• test/ – parallel test suites for each layer and fixtures
• core/ – shared utilities (errors, services, use cases, typedefs)
• Features: Each feature (here “tasks”) contains its own data, domain, and presentation subfolders, enforcing separation of concerns.
• Configuration: pubspec.yaml, analysis_options.yaml, CI workflow (.github/workflows/flutter.yml).
README for additional insights
• Confirms use of Clean Architecture, TDD, flutter_bloc (Cubit), get_it, dartz for functional error handling, http client for remote calls, equatable, mocktail, and bloc_test.
Detail without over-crowding
• Every layer: Core, Features (Presentation, Domain, Data), External API, Platform.