v0.1.11flip_widget
Flip your widget.
160Likes 4830-day downloads125Pub points
AndroidiOS
gsioteam/flip_widget open-source repository details.
{"sdk":"flutter"}{"git":"https://github.com/gsioteam/gl_canvas.git"}^0.0.1{"git":{"url":"https://github.com/gsioteam/opengl_es_bindings.git","ref":"e1c2d6fe06e8838388e9e3c94b66b912b818919e"}}^2.1.0{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
Flip your widget.
screenrecord
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();