CardStackLayer<T> constructor

const CardStackLayer<T>({
  1. Key? key,
  2. required CardCarouselController controller,
  3. required List<T> items,
  4. required Widget cardBuilder(
    1. BuildContext context,
    2. T item,
    3. double verticalProgress,
    4. int index,
    5. bool isActive,
    ),
  5. required Widget fullscreenBuilder(
    1. BuildContext context,
    2. T item,
    3. double verticalProgress
    ),
  6. double cardWidthFraction = 0.85,
  7. double cardHeightFraction = 0.75,
  8. double maxRadius = 28.0,
  9. double maxElevation = 12.0,
  10. Color? surfaceColor,
})

Implementation

const CardStackLayer({
  super.key,
  required this.controller,
  required this.items,
  required this.cardBuilder,
  required this.fullscreenBuilder,
  this.cardWidthFraction = 0.85,
  this.cardHeightFraction = 0.75,
  this.maxRadius = 28.0,
  this.maxElevation = 12.0,
  this.surfaceColor,
});