Skip to content

Instantly share code, notes, and snippets.

@sergenes
Created June 26, 2021 03:29
Show Gist options
  • Save sergenes/3109c8b0d69e6fc9ecc35b94f67bdef2 to your computer and use it in GitHub Desktop.
Save sergenes/3109c8b0d69e6fc9ecc35b94f67bdef2 to your computer and use it in GitHub Desktop.
val color = if (side == CardFlipState.FRONT_FACE) backgroundColor
else backSideColor
Surface(
modifier = modifier,
shape = RoundedCornerShape(cornerRadiusBig),
color = color,
elevation = normalElevation,
content = {
Scaffold(
modifier = Modifier.fillMaxSize(),
topBar = {},
bottomBar = { bottomBar(backgroundColor) },
content = { content(color) }
)
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment