Skip to content

Instantly share code, notes, and snippets.

@syntialai
Last active January 10, 2023 02:50
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 syntialai/d39974e37a1a35aeb561037322500b43 to your computer and use it in GitHub Desktop.
Save syntialai/d39974e37a1a35aeb561037322500b43 to your computer and use it in GitHub Desktop.
Jetpack Compose Row/Column example
@Composable
fun PreviewScreen(
screenName: String,
modifier: Modifier = Modifier
) {
Surface(modifier = modifier.fillMaxSize()) {
Column(modifier = modifier.verticalScroll()) {
PreviewAnimation()
Text(
text = stringResource(id = R.string.preview_of_page, screenName),
style = MaterialTheme.typography.titleLarge
)
Text(
text = stringResource(id = R.string.preview_page_description, screenName),
style = MaterialTheme.typography.bodyLarge
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment