Skip to content

Instantly share code, notes, and snippets.

@pepitoria
Created November 4, 2023 11:19
Show Gist options
  • Save pepitoria/99690764c4f5add25fd8c923235c0047 to your computer and use it in GitHub Desktop.
Save pepitoria/99690764c4f5add25fd8c923235c0047 to your computer and use it in GitHub Desktop.
@Composable
fun pokemon() {
Column(modifier = Modifier) {
Row(modifier = Modifier.padding(16.dp)) {
Text(text = "Bulbasaur")
Spacer(modifier = Modifier.weight(1f))
Text(text = "#001")
}
Box(
modifier = Modifier
.fillMaxWidth()
.height(200.dp)
) {
Column(
modifier = Modifier
) {
Spacer(modifier = Modifier.weight(1f))
Column(
modifier = Modifier
.height(50.dp)
.fillMaxWidth()
.clip(RoundedCornerShape(topStart = 20.dp, topEnd = 20.dp))
.background(color = White)
) {
}
}
Image(
painter = painterResource(id = R.drawable.bulbasaur),
contentDescription = "",
modifier = Modifier
.align(Alignment.Center)
)
}
Column(
modifier = Modifier
.fillMaxSize()
.background(color = White)
.verticalScroll(rememberScrollState())
) {
Text(
text = "Bulbasaur",
color = DarkGreen,
modifier = Modifier.padding(56.dp)
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment