Skip to content

Instantly share code, notes, and snippets.

@DmytroShuba
Created November 10, 2021 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DmytroShuba/d4391dc62de27aa2d309a8730c3e3fb1 to your computer and use it in GitHub Desktop.
Save DmytroShuba/d4391dc62de27aa2d309a8730c3e3fb1 to your computer and use it in GitHub Desktop.
CreateCustomTheme - GalleryItem
@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