KinCarousel constructor

const KinCarousel({
  1. Key? key,
  2. required List<Widget> children,
  3. KinCarouselVariant variant = KinCarouselVariant.fullBleed,
  4. KinCarouselIndicator indicator = KinCarouselIndicator.dot,
  5. bool autoPlay = false,
  6. Duration autoPlayInterval = const Duration(seconds: 4),
  7. double viewportFraction = 0.92,
  8. double itemSpacing = KinSpacing.sm,
  9. double? height,
  10. int initialPage = 0,
  11. bool enableLoop = false,
  12. bool padEnds = true,
  13. EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
  14. ValueChanged<int>? onPageChanged,
  15. Axis scrollDirection = Axis.horizontal,
})

Implementation

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