CollapsableCardStacker constructor
const
CollapsableCardStacker({
- Key? key,
- required List<
Widget> cards, - int initialPageIndex = 0,
- double cardWidth = 300,
- double cardHeight = 300,
- double initialOffset = 40.0,
- double spaceBetweenItems = 400,
- PageController? pageController,
- Axis scrollDirection = Axis.vertical,
- ValueChanged<
int> ? onPageChanged, - Duration animationDuration = const Duration(milliseconds: 600),
Implementation
const CollapsableCardStacker({
Key? key,
required this.cards,
this.initialPageIndex = 0,
this.cardWidth = 300,
this.cardHeight = 300,
this.initialOffset = 40.0,
this.spaceBetweenItems = 400,
this.pageController,
this.scrollDirection = Axis.vertical,
this.onPageChanged,
this.animationDuration = const Duration(milliseconds: 600),
}) : super(key: key);