Flippable
A composable which creates a card-like flip view for frontSide and backSide composables.
Example usage:
Flippable(
frontSide = {
// Composable content
},
backSide = {
// Composable content
}),
flipController = rememberFlipController(),
// ... other optional parameters
Author
Wajahat Karim (https://wajahatkarim.com)
Parameters
Composable method to draw any view for the front side
Composable method to draw any view for the back side
A FlippableController which lets you control flipping programmatically.
The Modifier for this Flippable
The duration in Milliseconds for the flipping animation
If true, flipping will be done through clicking the Front/Back sides.
Enable/Disable the Flipping animation.
If true, the Flippable will automatically flip back after autoFlipDurationMs.
The duration in Milliseconds to auto-flip back
The GraphicsLayerScope.cameraDistance for the flip animation. Sets the distance along the Z axis (orthogonal to the X/Y plane on which layers are drawn) from the camera to this layer.
The animation type of flipping effect.
The listener which is triggered when flipping animation is finished.