KinCarousel.stacked constructor

const KinCarousel.stacked({
  1. Key? key,
  2. required List<Widget> children,
  3. KinCarouselIndicator indicator = KinCarouselIndicator.dash,
  4. bool autoPlay = false,
  5. Duration autoPlayInterval = const Duration(seconds: 4),
  6. double? height,
  7. int initialPage = 0,
  8. bool enableLoop = false,
  9. EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
  10. ValueChanged<int>? onPageChanged,
  11. Axis scrollDirection = Axis.horizontal,
})

Implementation

const KinCarousel.stacked({
  super.key,
  required this.children,
  this.indicator = KinCarouselIndicator.dash,
  this.autoPlay = false,
  this.autoPlayInterval = const Duration(seconds: 4),
  this.height,
  this.initialPage = 0,
  this.enableLoop = false,
  this.contentPadding = EdgeInsets.zero,
  this.onPageChanged,
  this.scrollDirection = Axis.horizontal,
})  : variant = KinCarouselVariant.stacked,
      viewportFraction = 0.82,
      itemSpacing = 0,
      padEnds = true;