Search packages, repositories and app categories

flip_widget cover
Package detailsv0.1.11

flip_widget

Flip your widget.

AndroidiOS
30-day downloads
87
Likes
160
Pub points
125

Install package

flutter pub add flip_widget

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flip Widget is a Flutter package that enables smooth flipping animations for widgets, allowing developers to create interactive and visually engaging UIs. It supports flipping between two states—front and back—using simple, declarative syntax. Ideal for card-like interfaces, reveal effects, or any scenario requiring a flip transition. The package is lightweight and integrates seamlessly with existing Flutter projects. It works on both Android and iOS platforms, ensuring consistent behavior across devices.

Use cases

  • Creating animated cards
  • Revealing hidden content
  • Interactive UI elements
  • Game interfaces
  • Product detail flips

Key features

  • Smooth flip animations
  • Front and back widget support
  • Simple API
  • Cross-platform compatibility
  • Customizable duration and curve

Suitable for

  • UI designers seeking visual flair
  • Developers building interactive apps
  • Educational or gaming apps
  • E-commerce product previews

Considerations

  • Limited to 2-state flipping
  • May impact performance with complex widgets
  • Requires careful state management
  • Not suitable for complex multi-step transitions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 4 items

  • ffi^1.1.2
  • flip_renderer^0.0.1
  • gl_canvas^1.0.6
  • opengl_es_bindings^1.0.0-pre.1

Source repository

Projects using this package