I am developing an app with Desktop Compose Multi-Platform.
I need to hide the button when it has been clicked.
Please see below code:
OutlinedButton(
onClick = {
// Perform an operation
// Hide the button
}) {
Text(text = "CLick Here")
}
As compared to android, Desktop Compose does not have visibility modifiers.
for e.g. visibility = View.GONE
So how to hide the button on the onClick
event ?