hero_container 1.0.0 copy "hero_container: ^1.0.0" to clipboard
hero_container: ^1.0.0 copied to clipboard

Smooth animated transitions between widgets using snapshot-based animations. Inspired by OpenContainer with enhanced performance for complex layouts.

Introduction #

A Flutter package that provides smooth animated transitions between widgets using snapshot-based animations for consistent 120fps performance regardless of widget complexity.

Inspired by Flutter's OpenContainer from the animations package.

Usage #

The following explains the basic usage of this package.

HeroContainer(
  closedBuilder: (context, action) {
    return TextButton(
      onPressed: action,
      child: Text("Tap to expand", style: TextStyle(fontSize: 50))
    );
  }
  openedBuilder: (context) {
    return Scaffold(
      appBar: AppBar(title: Text("Expanded View")),
      body: Center(
        child: Text("Hello, World!", style: TextStyle(fontSize: 32)),
      ),
    );
  },
)
6
likes
0
points
17
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

Smooth animated transitions between widgets using snapshot-based animations. Inspired by OpenContainer with enhanced performance for complex layouts.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on hero_container