协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
android-state【开发与工程】Configure ViewModel state emission with StateFlow, SharedFlow, and sealed UiState classes in Android. Use for state modeling and sharing policies; defer generic lifecycle collection, navigation-event plumbing, Hilt injection, test code, and configuration-change recipes to their specific skills.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
StateFlow<UiState> via .asStateFlow().viewModelScope for all coroutines.init block.See templates for ViewModel and UiState examples.
@Immutable.See templates for sealed UiState pattern.
collectAsStateWithLifecycle() in Compose.SharingStarted.WhileSubscribed(5000) for shared resources..asStateFlow() to consumers.StateFlow<UiState>.collectAsStateWithLifecycle()../gradlew test passes for ViewModel tests.