Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Last active August 23, 2020 01:51
Show Gist options
  • Save manuelernesto/1ea4a1d694b76b7b962714934d801227 to your computer and use it in GitHub Desktop.
Save manuelernesto/1ea4a1d694b76b7b962714934d801227 to your computer and use it in GitHub Desktop.
@Composable
fun HomeContent(product: Product = mProduct) {
ConstraintLayout(modifier = Modifier.fillMaxSize(),
constraintSet = MainConstraintSet()) {
Card(
shape = RoundedCornerShape(topLeft = 24.dp, topRight = 24.dp),
elevation = 0.dp,
modifier = Modifier.tag("BgCard").preferredHeight(444.dp).fillMaxWidth()
) {
ConstraintLayout(modifier = Modifier.padding(16.dp),
constraintSet = CardConstraintSet()) {
CardContent(product)
}
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment