Component - Room with Flow for reactive data
This UI component shows a list of items stored in a local database using Room. It uses Kotlin Flow to reactively update the list on the screen whenever the data changes, without needing manual refresh.
This UI component shows a list of items stored in a local database using Room. It uses Kotlin Flow to reactively update the list on the screen whenever the data changes, without needing manual refresh.
Activity
└── Scaffold (Material Design layout)
├── TopAppBar (Title bar)
└── Column (Vertical layout)
├── LazyColumn (Scrollable list)
│ └── ItemRow (Each item in list)
└── FloatingActionButton (Add new item button)