easy_animated_indexed_stack 0.0.1 copy "easy_animated_indexed_stack: ^0.0.1" to clipboard
easy_animated_indexed_stack: ^0.0.1 copied to clipboard

A drop-in replacement for Flutter's default `IndexedStack` that allows simple animations to transition between widgets

Easy Animated Indexed Stack #

A drop-in replacement for Flutter's default IndexedStack that allows simple animations to transition between widgets/screens/pages.

Demo #

https://github.com/user-attachments/assets/12f05c41-a865-4f83-84af-753f4aae090a

Getting Started #

Add the dependency in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  # Add this  
  easy_animated_indexed_stack:

Usage #

As mentioned above, this package provides a drop-in replacement for Flutter's default IndexedStack widget, meaning you can simply replace your IndexedStack usages with EasyAnimatedIndexedStack instances. For example:

@override
Widget build(BuildContext context) {
    return EasyAnimatedIndexedStack(
        // `selectedIndex` is a state variable (int)
        index: selectedIndex,
        children: [
            PageA(onTap: () => setState(() => selectedIndex = 0)),
            PageB(onTap: () => setState(() => selectedIndex = 1)),
            PageC(onTap: () => setState(() => selectedIndex = 2)),
        ],
    );
}

LICENSE #

This package uses the New BSD License

1
likes
0
pub points
47%
popularity

Publisher

unverified uploader

A drop-in replacement for Flutter's default `IndexedStack` that allows simple animations to transition between widgets

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on easy_animated_indexed_stack