Created
November 10, 2021 15:36
-
-
Save DmytroShuba/d4391dc62de27aa2d309a8730c3e3fb1 to your computer and use it in GitHub Desktop.
CreateCustomTheme - GalleryItem
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 GalleryItem(item: PhotographItem) { | |
Column( | |
modifier = Modifier.padding(AppTheme.dimensions.paddingMedium) | |
) { | |
Text( | |
text = item.description, | |
style = AppTheme.typography.body, | |
color = AppTheme.colors.textPrimary | |
modifier = Modifier.padding(AppTheme.dimensions.paddingSmall) | |
) | |
Image( | |
rememberImagePainter(item.photoUrl), | |
contentDescription = null, | |
modifier = Modifier.size(256.dp) | |
) | |
Text( | |
text = item.author, | |
style = AppTheme.typography.caption, | |
color = AppTheme.colors.textSecondary, | |
modifier = Modifier.padding(AppTheme.dimensions.paddingSmall) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment