Created
July 10, 2023 09:59
-
-
Save zurche/305f0b1cbc94e6e79365bde32a2626be to your computer and use it in GitHub Desktop.
MovieDetailScreen
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
@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