FLUTTER ECOSYSTEM

gsioteam/flip_widget

gsioteam/flip_widget open-source repository details.

flip_widget project cover
Stars
41
Forks
22
Last push (UTC)
May 8, 2024
Project status
Active
gsioteam GitHub avatar
GITHUB User

gsioteam ↗

LanguagesDartRubySwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 6 items
  • flutter{"sdk":"flutter"}
  • gl_canvas{"git":"https://github.com/gsioteam/gl_canvas.git"}
  • flip_renderer^0.0.1
  • opengl_es_bindings{"git":{"url":"https://github.com/gsioteam/opengl_es_bindings.git","ref":"e1c2d6fe06e8838388e9e3c94b66b912b818919e"}}
  • ffi^2.1.0
  • flutter_testDevelopment{"sdk":"flutter"}

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

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();