How omarj9/my-todo works
Main System Components
• Flutter Application Layers (inside the lib/ directory):
• Core Layer: This includes shared modules such as constants, dependency injection (DI), error handling, themes, routing, services, utilities, and reusable widgets.
• Features Layer: Organized by app functionality (auth, onboarding, profile, splash, task, welcome). Each feature follows a layered pattern (data, state management (Cubits/Blocs), and presentation/UI).
Clean Architecture Breakdown (per feature)
• Presentation Layer: This includes all the UI components such as screens and widgets. For example, sign_in_screen.dart in the auth feature or home_screen.dart in the task feature.
• State Management: Cubits (or BLoCs) in each feature that manage the UI state, serving as an intermediary between the Data and UI layers. For example, authentication_cubit.dart or task_cubit.dart.
Architectural Technologies and Patterns
• Clean Architecture: Emphasize how features are encapsulated using a layered approach.
• Dependency Injection: Note the presence of DI modules in lib/core/di, which help in loosely coupling the components.
• State Management with Cubit: Each feature uses Cubits for state management.
• Navigation: Managed by GoRouter (as mentioned in the README), which will be part of the routing mechanism housed in lib/core/route.
• Data flow from the remote API (custom backend referenced in the README) to the repositories and then via state management to update the UI.
• Dependency injections flowing from the DI container (in lib/core/di) to the various components that need them.