Squishy
Usage
Add squishy()
modifier on your composable element.
Text(
text = "Squishhhhyyyyy",
modifier = Modifier
.size(200.dp, 100.dp)
.squishy()
)
onClick lambda
Lambda will be called when user clicks the element. You can pass onClick
if you want to perform any action on click.
Modifier.explodeOnClick(color = backColor,
onClick = {
// To some action
})
color
Set the background color.
modifier = Modifier.squishy(color=Color.Black)
borderColor
Set the border color.
modifier = Modifier.squishy(color = Color.Transparent, borderColor = Color.Black)