flipper 1.0.1 copy "flipper: ^1.0.1" to clipboard
flipper: ^1.0.1 copied to clipboard

A widget that does transition between two children in a flipping manner.

flipper #

preview

How to use #

GlobalKey<FlipperState> _key = GlobalKey<FlipperState>();
var flipper = _key.currentState;
if (flipper.state == Turn.obverse) {
    flipper.flipCard(Direction.right);
}

//...

Flipper(
    key: _key,
    initState: Turn.obverse,
    onFlipCallback: (turn) => {/*...*/},
    obverseChild: Container(),
    reverseChild: Container(),
    flipThreshold: 0.60,
    duration: const Duration(milliseconds: 300),
    ignoreSwipe: false,
)
6
likes
30
pub points
1%
popularity

Publisher

unverified uploader

A widget that does transition between two children in a flipping manner.

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flipper