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

allan.conda

01/14/2021, 11:07 AM
I’m getting this lint
@Composable properties should be declared with the @Composable annotation on the getter, and not the property itself.
But it won’t let me do it. What’s the right way?
1
j

jaqxues

01/14/2021, 11:22 AM
The right way to annotate a getter is
Copy code
@get:Composable
val arrowLeft: ImageVector
     get() = //....
💡 3
a

allan.conda

01/14/2021, 12:02 PM
Thanks! That seemed to work
v

Vipulyaara

01/14/2021, 3:24 PM
as of alpha09
3 Views