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

Shivam Sethi

03/01/2021, 2:43 AM
any idea, why getting a context is giving an error here:
anybody who is facing this error, call this from scope of composable function
k

knthmn

03/01/2021, 3:14 AM
onClick
takes a normal lambda not a composable one. If you need the context in
onClick
you need to assign it to a variable in your composable and use the variable in
onClick
💯 3
s

Shivam Sethi

03/01/2021, 3:17 AM
Correct, thanks for the response