ifTrue
Modifier to make it easy to conditionally add a modifier based on predicate
Box(
modifier = Modifier.fillMaxWidth()
.ifTrue(isError) { background(SparkTheme.colors.error) }
.padding(16.dp)
) {...}
Content copied to clipboard
Modifier to make it easy to conditionally add a modifier based on predicate
Box(
modifier = Modifier.fillMaxWidth()
.ifTrue(isError) { background(SparkTheme.colors.error) }
.padding(16.dp)
) {...}