Jetpack Compose & Kotlin Patterns
Jetpack Compose best practices with MVVM architecture, StateFlow, Kotlin Coroutines, Hilt dependency injection, and modern Android development patterns.
- Difficulty
- intermediate
- Read time
- 1 min read
- Version
- v1.0.0
- Confidence
- established
- Last updated
Quick Reference
Jetpack Compose: MVVM with StateFlow for UI state. Hilt for DI with @HiltViewModel. collectAsStateWithLifecycle() for Flow. LaunchedEffect for side effects. Unidirectional data flow - state down, events up. Repository pattern for data layer.
Use When
- Building Android apps with Jetpack Compose
- Implementing MVVM architecture in Kotlin
- Using Kotlin Coroutines and Flow
- Setting up dependency injection with Hilt
Skip When
- Legacy Android with XML layouts
- Cross-platform frameworks (Flutter, React Native)
- iOS development
Jetpack Compose & Kotlin Patterns
Jetpack Compose best practices with MVVM architecture, StateFlow, Kotlin Coroutines, Hilt dependency injection, and modern Android development patterns.