-
-
Save KatieBarnett/abc812435ba93a9758874f41f4913212 to your computer and use it in GitHub Desktop.
Conditional disabled modifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun DisabledScene( | |
isDisabled: Boolean, | |
modifier: Modifier = Modifier | |
) { | |
Row( | |
modifier.conditional(isDisabled, { | |
disabled() | |
}) | |
) { | |
SceneContent(color = Color.Blue) | |
SceneContent(color = Color.Red) | |
SceneContent(color = Color.Black) | |
PhotoSceneContent(color = Pink) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment