Last active
February 12, 2024 08:08
-
-
Save Levi-Moreira/805789a3a8c9bff10dae2906db339ba3 to your computer and use it in GitHub Desktop.
Initial Code Representing a Screen Without Nested Scrolling
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
val AppBarHeight = 56.dp | |
val Purple40 = Color(0xFF6650a4) | |
Surface( | |
modifier = Modifier.fillMaxSize(), | |
color = MaterialTheme.colorScheme.background | |
) { | |
Box { | |
LazyColumn(contentPadding = PaddingValues(top = AppBarHeight)) { | |
items(Contents) { | |
ListItem(item = it) | |
} | |
} | |
TopAppBar( | |
title = { Text(text = "Jetpack Compose") }, | |
colors = TopAppBarDefaults.topAppBarColors( | |
containerColor = Purple40, | |
titleContentColor = Color.White | |
) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment