flip_widget 0.1.4 copy "flip_widget: ^0.1.4" to clipboard
flip_widget: ^0.1.4 copied to clipboard

outdated

Flip your widget.

flip_widget #

Flip your widget.

screenrecord

Usage #

It is very easy to use.

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

//...
// Show effect layer.
_flipKey.currentState?.startFlip();
/// 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.
_flipKey.currentState?.stopFlip();
154
likes
0
points
95
downloads

Publisher

unverified uploader

Weekly Downloads

Flip your widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter, gl_canvas, opengl_es_bindings

More

Packages that depend on flip_widget