Last active
January 10, 2023 02:50
-
-
Save syntialai/d39974e37a1a35aeb561037322500b43 to your computer and use it in GitHub Desktop.
Jetpack Compose Row/Column example
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
@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