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