Comments (3)
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 Tutorial.next()
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 tutorialStep = null
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
from balloon.
I found on that there is 2 setOnBalloonDismissListener
exists: for Balloon
and for BalloonWindow
, and the second one is not working. I make it work by using listener for the first one. However the docs tells nothing about that. This happened because my deep dive into source code but normally I should be able to get this info from docs.
from balloon.
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
from balloon.
Related Issues (20)
- Bootlop using skydoves HOT 1
- Balloon Compose: Show balloon when the compose view is visible, without user interaction HOT 2
- Showing balloon while typing HOT 6
- Content window right spacing truncating inside widget
- Working with ImageSpan HOT 6
- Check box inside layout custom menu. HOT 1
- Show next and previous item data without dismiss in recyclerview HOT 2
- Prevent Balloon on theme changed HOT 1
- Shadow have its left and right shadow clipped HOT 5
- Getting some stuttering when doing fast scrolling. HOT 1
- The balloon is swallowing keyboard input. HOT 2
- can i set width and height dynamically? HOT 3
- Compose Balloon position is misplace HOT 4
- Compose elements with `fillMaxWidth()` are cut on the edge HOT 2
- Arrow is not showing HOT 9
- Corner radius not set properly HOT 2
- PopupWindow not seen By Appium HOT 4
- Make popup reappear in `onResume` after being dismissed in `onPause` HOT 1
- ArrowOrientation.BOTTOM and END not working in M3 ModalBottomSheet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balloon.