-
-
Save ssindher11/6e996d45dc6318c7003d2e51c2654e68 to your computer and use it in GitHub Desktop.
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
val rightGuideline = createGuidelineFromStart(0.4f) | |
Image( | |
painter = painterResource(id = R.drawable.cover_image), contentDescription = null, | |
contentScale = ContentScale.Crop, | |
alignment = Alignment.Center, | |
modifier = Modifier | |
.constrainAs(coverImage) { | |
start.linkTo(parent.start, 24.dp) | |
top.linkTo(menuButton.bottom, 16.dp) | |
end.linkTo(rightGuideline, 16.dp) | |
width = Dimension.fillToConstraints | |
} | |
.aspectRatio(2f / 3f), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment