flip_widget 0.1.11 icon indicating copy to clipboard operation
flip_widget: ^0.1.11 copied to clipboard

Flip your widget.

flip_widget #

Flip your widget.


Usage #

It is very easy to use.

    key: _flipKey,
    child: Container(
        color: Colors.blue,
        child: Center(
            child: Text("hello"),

// Show effect layer.
/// Update the effect layer
/// [percent] is the position for flipping at the bottom.
/// [tilt] is the `a` of `y = a*x + b`(line equation). 
_flipKey.currentState?.flip(percent, tilt);
/// Dismiss the effect layer and show the original widget.