FLUTTER ECOSYSTEM

gsioteam/flip_widget

gsioteam/flip_widget open-source repository details.

Capa do projeto flip_widget
Stars
41
Forks
22
Último push (UTC)
8 de mai. de 2024
Status do projeto
Ativo
gsioteam GitHub avatar
GITHUB User

gsioteam ↗

LinguagensDartRubySwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 6 itens
  • 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_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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();