FLUTTER ECOSYSTEM

gsioteam/flip_widget

gsioteam/flip_widget open-source repository details.

Projektcover von flip_widget
Stars
41
Forks
22
Letzter Push (UTC)
08.05.2024
Projektstatus
Aktiv
gsioteam GitHub avatar
GITHUB User

gsioteam ↗

SprachenDartRubySwiftKotlinObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 6 Einträge
  • 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_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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