FadeIndexedStack constructor

const FadeIndexedStack({
  1. Key? key,
  2. required int index,
  3. required List<Widget> children,
  4. Duration duration = const Duration(milliseconds: 800),
})

An IndexedStack that animates its children in and out using a FadeTransition.

This widget was authored by Diego Velásquez López. Please view the original source code here

Implementation

const FadeIndexedStack({
  super.key,
  required this.index,
  required this.children,
  this.duration = const Duration(
    milliseconds: 800,
  ),
});