Skill
Kotlin Android Compose
Builds Jetpack Compose screens with state hoisting, ViewModels and one-way data flow, so UI stays stateless, previewable and easy to test.
1State goes down, events go up. Composables that draw take values and lambdas, nothing else.
2Steps
31. Read the module's existing screens, its Gradle version catalog and its DI setup (Hilt, Koin or manual). Match them.
42. Define a `UiState` as a sealed interface or data class: loading, content, error. Define a `UiEvent` or plain methods on the ViewModel for user actions.
53. The ViewModel exposes `StateFlow<UiState>` built with `stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), initial)`. One-off effects such as navigation or snackbars go through a `Channel` collected once, or become state that the UI consumes and clears.
kotlin
Kotlin Android Compose
Skillkotlin
Free