Skip to content

Instantly share code, notes, and snippets.

@DmytroShuba
Created November 10, 2021 15:35
Show Gist options
  • Save DmytroShuba/1ebf30a76a4685befd72dbeef3cffc25 to your computer and use it in GitHub Desktop.
Save DmytroShuba/1ebf30a76a4685befd72dbeef3cffc25 to your computer and use it in GitHub Desktop.
CreateCustomTheme - DemoScreen
@Composable
fun DemoScreen(items: List<PhotographItem>) {
LazyColumn(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.fillMaxSize()
.background(AppTheme.colors.background)
) {
item {
TopAppBar(
title = {
Text(text = "The gallery")
},
backgroundColor = Color.Transparent,
elevation = 2.dp
)
}
items(items) { item ->
GalleryItem(item)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment