Relative Content

Tag Archive for androidkotlinandroid-jetpack-composekotlin-flowandroid-jetpack-datastore

How to init TextField with datastore variable

Having a composable wich haves a textfield which needs to work with a by remember mutablestateof String called text, that variable must be initialized with a datastore stored value. I have the datastore repo on the viewmodel, but it returns a Flow, which also needs to be executed in a coroutine. So… I’m stuck.