-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose: provide the way to get the end of the sequentially showed balloons. Still not working after 1.6.3 #549
Comments
I found on that there is 2 |
I'm not sure if it fits your case, but it works when doing the balloons with a state in the parent composable. enum class Tutorial(val step: Int?) {
None(0),
ShowX(1),
ShowY(2),
Close(null),
} Then have the state at the top var tutorialStep by remember { mutableStateOf(Tutorial.NONE) } Implement the logic for increasing the steps and have helper method Add the LaunchedEffect at the end of the parent composable LaunchedEffect(tutorialStep) {
if (tutorialStep == Tutorial.NONE) tutorialStep = tutorialStep.next()
} When you want to skip the tutorial or close it at the very end all you need to do is set the At least this works for me as I am building a sequence of balloons and I think this should be slightly less bulky than all the conditional statements you have there and easier to understand |
The kotlin version of our project is only 1.5.0 but your latest version is 1.9.0. What if you fix some bugs in the latest version and I have to use the older version |
Please complete the following information:
Describe the Bug:
After update to 1.6.3
setOnBalloonDismissListener
still not working. Here is my way of using it.setOnBalloonDismissListener
So here are examples.
Expected Behavior:
setOnBalloonDismissListener
worksThe text was updated successfully, but these errors were encountered: