SlideIndexedStack constructor

const SlideIndexedStack({
  1. Key? key,
  2. List<Widget> children = const [],
  3. StackFit sizing = StackFit.loose,
  4. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  5. int? index = 0,
  6. TextDirection? textDirection,
  7. Duration duration = const Duration(milliseconds: 250),
  8. Offset beginSlideOffset = const Offset(0, -1),
  9. Offset endSlideOffset = const Offset(0, 0),
  10. Curve curve = Curves.easeInOut,
})

Creates An Indexed Stack with Customizable Slide Animation.

Implementation

const SlideIndexedStack({
  super.key,
  this.children = const [],
  this.sizing = StackFit.loose,
  this.alignment = AlignmentDirectional.topStart,
  this.index = 0,
  this.textDirection,
  this.duration = const Duration(milliseconds: 250),
  this.beginSlideOffset = const Offset(0, -1),
  this.endSlideOffset = const Offset(0, 0),
  this.curve = Curves.easeInOut,
});