Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Created August 21, 2021 17:15
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 waseefakhtar/eada4bf7db55b331c121cc3d3f678593 to your computer and use it in GitHub Desktop.
Save waseefakhtar/eada4bf7db55b331c121cc3d3f678593 to your computer and use it in GitHub Desktop.
@Composable
private fun ProfileHeader(
puppy: Puppy,
containerHeight: Dp
) {
Image(
modifier = Modifier
.heightIn(max = containerHeight / 2)
.fillMaxWidth(),
painter = painterResource(id = puppy.puppyImageId),
contentScale = ContentScale.Crop,
contentDescription = null
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment