What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-14 03:27:13
observe list in jetpack compose
val list = remember { mutableStateListOf() } LazyColumn() { itemsIndexed(list) { index, listItem -> ... } } if using ViewModel: In ViewModel file: val listInViewModel = mutableStateListOf() in Composable: val list = remember { viewModel.lis... Add solution -
Other 2021-11-10 21:01:21
kotlin hashmap to object
Ok I found the solution I transformed my Bundle class in a data class : data class Bundle( var version: String? = null, var app: String? = null, var countries: ArrayList<Any> = arrayListOf(), var currency: HashMap<String, Any>... Add solution