Join Slack
any idea, why getting a context is giving an error here:
# compose
s
Shivam Sethi
03/01/2021, 2:43 AM
any idea, why getting a context is giving an error here:
Shivam Sethi
03/01/2021, 2:49 AM
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
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by