https://kotlinlang.org logo
#compose
Title
# compose
z

zoha131

12/04/2020, 1:34 AM
I am getting an error while trying:
Copy code
var expanded by remember { mutableStateOf(false) }
the error:
Copy code
Type 'TypeVariable(T)' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
l

Lilly

12/04/2020, 1:35 AM
You have to import:
Copy code
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
💯 1
z

zoha131

12/04/2020, 1:37 AM
thanks @Lilly