Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created January 9, 2022 10:00
Show Gist options
  • Save enginebai/4ca857b13833f5f1d5c59840654d426b to your computer and use it in GitHub Desktop.
Save enginebai/4ca857b13833f5f1d5c59840654d426b to your computer and use it in GitHub Desktop.
@Preview
@Composable
fun MovieInfoWidgetPreview() {
MovieInfoWidget(
posterUrl = "https://image.tmdb.org/t/p/w780//or06FN3Dka5tukK1e9sl16pB3iy.jpg",
movieName = "Star Wars",
isBookmark = false,
rating = 4.3f,
ratingTotalCountText = "10 k",
genres = "Action, Science Fictions, Adventure",
releaseDateText = "2021-08-12",
runtimeText = "1h 12m",
overview = "As the Avengers and their allies have continued to protect the world from threats too large for any one hero to handle, a new danger has emerged from the cosmic shadows: Thanos. A despot of intergalactic infamy, his goal is to collect all six Infinity Stones, artifacts of unimaginable power, and use them to inflict his twisted will on all of reality. Everything the Avengers have fought for has led up to this moment - the fate of Earth and existence itself has never been more uncertain."
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment