Cấu trúc phổ biến: lib/presentation/ (UI, widget, BLoC/ViewModel), lib/domain/ (entity, repository interface, use case), lib/data/ (API client, local DB, repository implementation), lib/config/ (cấu hình app, constant).
- Mỗi feature có thể có domain/data/presentation riêng.
- Điều này giữ code có tổ chức, dễ điều hướng và test.
Common structure: presentation/ for UI and BLoCs/ViewModels, domain/ for entities and use cases, data/ for API clients and repository implementations, config/ for app configuration.
Each feature can have its own domain/data/presentation subdirectory.