Skip to content

Instantly share code, notes, and snippets.

@sergenes
Last active June 26, 2021 03:25
Show Gist options
  • Save sergenes/dca7a3b5b5b284d5ced641500c840525 to your computer and use it in GitHub Desktop.
Save sergenes/dca7a3b5b5b284d5ced641500c840525 to your computer and use it in GitHub Desktop.
Part2
enum class CardFlipState {
FRONT_FACE, BACK_FACE
}
val cornerRadiusBig = 20.dp
val normalElevation = 1.dp
val backSideColor = Color(0xFFfef49c)
val secondaryColor = Color(0xffb2ffa1)
val tertiaryColor = Color(0xFFb6caff)
@Composable
fun StudyCardView(
modifier: Modifier = Modifier,
side: CardFlipState = CardFlipState.FRONT_FACE,
backgroundColor: Color = backSideColor,
content: @Composable (Color) -> Unit,
bottomBar: @Composable (Color) -> Unit
) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment