flip_widget

Last updated:

0 purchases

flip_widget Image
flip_widget Images
Add to Cart

Description:

flip widget

flip_widget #
Flip your widget.

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();
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.