Created
August 24, 2021 19:44
-
-
Save rubenquadros/8468e6dd2e23998d63d93b7e9ee53d7f to your computer and use it in GitHub Desktop.
Play button
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 | |
fun PlayTrailer( | |
modifier: Modifier = Modifier, | |
openGameTrailer: () -> Unit | |
) { | |
Box(modifier = modifier) { | |
IconButton(onClick = openGameTrailer) { | |
Image( | |
modifier = | |
Modifier.width(50.dp) | |
.height(50.dp) | |
.align(Alignment.Center) | |
.graphicsLayer { | |
shadowElevation = 20.dp.toPx() | |
shape = | |
RoundedCornerShape(15.dp) | |
clip = true | |
} | |
.background(Color(0xFFF50057)), | |
painter = | |
painterResource( | |
id = R.drawable.ic_play | |
), | |
contentDescription = "Play Trailer" | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment