KinCarousel constructor
const
KinCarousel({
- Key? key,
- required List<
Widget> children, - KinCarouselVariant variant = KinCarouselVariant.fullBleed,
- KinCarouselIndicator indicator = KinCarouselIndicator.dot,
- bool autoPlay = false,
- Duration autoPlayInterval = const Duration(seconds: 4),
- double viewportFraction = 0.92,
- double itemSpacing = KinSpacing.sm,
- double? height,
- int initialPage = 0,
- bool enableLoop = false,
- bool padEnds = true,
- EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
- ValueChanged<
int> ? onPageChanged, - 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,
});