Skip to content

Instantly share code, notes, and snippets.

@theapache64
Created October 6, 2021 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theapache64/a6e908a4c879aec88b2dd3ef7dd8b64d to your computer and use it in GitHub Desktop.
Save theapache64/a6e908a4c879aec88b2dd3ef7dd8b64d to your computer and use it in GitHub Desktop.
@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