transitioned_indexed_stack 1.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

This Package helps You Making Animated Transitions between IndexedStack children widgets Easily.

Transitioned Indexed Stack

This Package helps You Making Animated Transitions between IndexedStack children widgets Easily.

What it offers

  • Fade Indexed Stack
  • Scale Indexed Stack
  • Slide Indexed Stack
    • Slide Up IndexedStack
    • Slide Down IndexedStack
    • Slide Right IndexedStack
    • Slide Left IndexedStack
  • Size Factor Indexed Stack
  • Rotation Indexed Stack
  • Diagonal Indexed Stack
  • Shake Indexed Stack

All widgets offered by this package have the same properties as the pre-built Flutter IndexedStack widget, in addition of some useful properties which control the animations.

Demo App

Download Here


Usage:

Fade Indexed Stack

Showcase :

Code :

  FadeIndexedStack(
      beginOpacity: 0.0,
      endOpacity: 1.0,
      curve: Curves.easeInOut,
      duration: const Duration(milliseconds: 250),
      index: 1,
      children: const <Widget>[
        Center(
          child: Text("Child 1"),
        ),
        Center(
          child: Text("Child 2"),
        ),
      ],
    ),

Properties

propertyDescriptiontype
beginOpacityThe Initial Fade Opacity Animation Valuedouble
endOpacityThe End Fade Opacity Animation Valuedouble
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration

Scale Indexed Stack

Showcase :

Code :

  ScaleIndexedStack(
        beginScale: 0.0,
        endScale: 1.0,
        curve: Curves.easeInOut,
        duration: const Duration(milliseconds: 250),
        index: 1,
        children: const <Widget>[
          Center(
            child: Text("Child 1"),
          ),
          Center(
            child: Text("Child 2"),
          ),
        ],
      ),

Properties

propertyDescriptiontype
beginScaleThe Initial Scale Animation Valuedouble
endScaleThe End Scale Animation Valuedouble
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration

Slide Indexed Stack

Showcase :

Code :

  SlideIndexedStack(
        endSlideOffset: const Offset(0.5, 1),
        beginSlideOffset: const Offset(0.0, 0.0),
        curve: Curves.easeInOut,
        duration: const Duration(milliseconds: 250),
        index: 1,
        children: const <Widget>[
          Center(
            child: Text("Child 1"),
          ),
          Center(
            child: Text("Child 2"),
          ),
        ],
      ),

Properties

propertyDescriptiontype
endSlideOffsetThe Offset From Where The Animations StartsOffset
beginSlideOffsetThe Offset From Where The Animations EndsOffset
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration

Size Factor Indexed Stack

Showcase :

Code :

   SizeFactorIndexedStack(
        beginSizeFactor: 0.0,
        endSizeFactor: 1.0,
        curve: Curves.easeInOut,
        duration: const Duration(milliseconds: 250),
        index: 1,
        children: const <Widget>[
          Center(
            child: Text("Child 1"),
          ),
          Center(
            child: Text("Child 2"),
          ),
        ],
      ),

Properties

propertyDescriptiontype
beginSizeFactorThe Initial Size Factor Animation Valuedouble
endSizeFactorThe End Size Factor Animation Valuedouble
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration

Rotation Indexed Stack

Showcase :

Code :

  RotationIndexedStack(
        beginTurn: 0.0,
        endTurn: 1.0,
        curve: Curves.easeInOut,
        duration: const Duration(milliseconds: 250),
        index: 1,
        children: const <Widget>[
          Center(
            child: Text("Child 1"),
          ),
          Center(
            child: Text("Child 2"),
          ),
        ],
      ),

Properties

propertyDescriptiontype
beginTurnThe Initial Rotation Turn Animation Valuedouble
endTurnThe End Rotation Turn Animation Valuedouble
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration

Shake Indexed Stack

Showcase :

Code :

ShakeIndexedStack(
        shakesCount: 100,
        shakeFrequency: 0.04,
        duration: const Duration(milliseconds: 250),
        curve: Curves.slowMiddle,
        index: 1,
        children: const <Widget>[
          Center(
            child: Text("Child 1"),
          ),
          Center(
            child: Text("Child 2"),
          ),
        ],
      ),

Properties

propertyDescriptiontype
shakesCountThis represent how much times a shake should be triggered during the animationdouble
shakeFrequencyTHis represents the shake frequencydouble
curveThe Animation CurveCurve
durationThe Animation duration ( need a hot restart to see changes )Duration