Hamza
12/29/2020, 5:58 AMby remember
changed = remember
? And to then add on that, in the places where they are used, to use the value
property on them?
https://github.com/JetBrains/compose-jb/tree/master/tutorials/Keyboard#focus-related-eventsIgor Demin
12/29/2020, 6:09 AMimport androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
it is delegates for more convenient way to read/write states (using x instead of x.value):
https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#getvalue
https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#setvalueHamza
12/29/2020, 6:13 AMHamza
12/29/2020, 6:13 AMxetra11
12/29/2020, 7:55 AMIgor Demin
12/29/2020, 8:11 AMHow come it can't be imported automatically?It is a bug of Kotlin plugin: https://youtrack.jetbrains.com/issue/KT-39199