Skip to content

Instantly share code, notes, and snippets.

@mazzouzi
Last active September 21, 2022 12:36
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 mazzouzi/29274d75531b7c30984ef9b0cfbbccd9 to your computer and use it in GitHub Desktop.
Save mazzouzi/29274d75531b7c30984ef9b0cfbbccd9 to your computer and use it in GitHub Desktop.
Body composable
@Composable
private fun Body() {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Spacer(Modifier.height(headerHeight))
repeat(5) {
Text(
text = stringResource(R.string.lorem_ipsum),
style = MaterialTheme.typography.body1,
textAlign = TextAlign.Justify,
modifier = Modifier
.background(Color(0XFF161616))
.padding(16.dp)
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment