Issue
I have a scrollable screen and I would like to do action when a specific text appears/disappears in that screen. Is there any way to do that? Thanks
Solution
val isVisible = remember {
mutableStateOf(false)
}
In compose as of 2022, you should do something like this for state of views.
remember() can hold state with any value type that you want.
Answered By - JuJu Juned
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.