Created
October 6, 2021 10:54
-
-
Save theapache64/a6e908a4c879aec88b2dd3ef7dd8b64d to your computer and use it in GitHub Desktop.
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
@Preview | |
@Composable | |
fun MyColumn() { | |
var isBigText by remember { | |
mutableStateOf(false) | |
} | |
Column( | |
modifier = Modifier | |
.padding(10.dp) | |
.height(200.dp) | |
.width(100.dp) | |
.background(Color.Red) | |
.clickable { | |
isBigText = !isBigText | |
} | |
) { | |
Text( | |
text = "Dream 11", | |
fontSize = 25.sp | |
) | |
Text( | |
text = if (isBigText) { | |
"You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0." | |
} else { | |
"I am small text" | |
} | |
) | |
Box(modifier = Modifier.fillMaxHeight(), contentAlignment = Alignment.BottomStart) { | |
Text(text = "PLAY NOW") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment