Created
November 10, 2021 15:35
-
-
Save DmytroShuba/1ebf30a76a4685befd72dbeef3cffc25 to your computer and use it in GitHub Desktop.
CreateCustomTheme - DemoScreen
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 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