Build: Clean Architecture Demo
This screen demonstrates a simple counter app built using clean architecture principles. It separates UI, business logic, and data layers to show how code can stay organized and scalable.
Target UI
┌─────────────────────────────┐ │ Clean Architecture │ ├─────────────────────────────┤ │ │ │ Counter: 0 │ │ │ │ [ Increment ] [ Reset ] │ │ │ └─────────────────────────────┘
Display a counter value starting at 0
Increment button increases the counter by 1
Reset button sets the counter back to 0
Separate UI, business logic, and data layers using clean architecture
Use a simple repository class to manage counter state
UI listens to changes and updates accordingly