Skip to content

Instantly share code, notes, and snippets.

@zurche
Created July 10, 2023 09:59
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 zurche/305f0b1cbc94e6e79365bde32a2626be to your computer and use it in GitHub Desktop.
Save zurche/305f0b1cbc94e6e79365bde32a2626be to your computer and use it in GitHub Desktop.
MovieDetailScreen
@Composable
@Preview
fun MovieDetailsScreen(
selectedMovie: MovieUI? = MovieUI(1, "Test", "")
) {
AsyncImage(
modifier = Modifier
.fillMaxSize()
.padding(5.dp),
model = ImageRequest.Builder(LocalContext.current)
.data(selectedMovie?.moviePosterUrl)
.crossfade(true).build(),
contentDescription = "TV Show Poster",
contentScale = ContentScale.Crop,
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment