Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Last active February 17, 2021 16:14
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 Skyyo/5ab6e60ecf824c7ebf608d283a19da0d to your computer and use it in GitHub Desktop.
Save Skyyo/5ab6e60ecf824c7ebf608d283a19da0d to your computer and use it in GitHub Desktop.
@Composable
fun CardArrow(
degrees: Float,
onClick: () -> Unit
) {
IconButton(
onClick = onClick,
content = {
Icon(
painter = painterResource(id = R.drawable.ic_expand_less_24),
contentDescription = "Expandable Arrow",
modifier = Modifier.rotate(degrees),
)
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment