FLUTTER ECOSYSTEM

gsioteam/flip_widget

gsioteam/flip_widget open-source repository details.

flip_widget प्रोजेक्ट कवर
Stars
41
Forks
22
अंतिम पुश (UTC)
8 मई 2024
प्रोजेक्ट स्थिति
सक्रिय
gsioteam GitHub avatar
GITHUB User

gsioteam ↗

भाषाएँDartRubySwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 6 आइटम
  • 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_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

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