CarouselWidget constructor
const
CarouselWidget({
- Key? key,
- required List<
Widget> items, - double height = 220,
- bool autoScroll = true,
- Duration autoScrollInterval = const Duration(seconds: 3),
- double itemSpacing = 5,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- double borderRadius = 16,
- double borderWidth = 0,
- Color borderColor = Colors.transparent,
- CarouselScrollMode scrollMode = CarouselScrollMode.standard,
- CarouselIndicatorType indicatorType = CarouselIndicatorType.dot,
- bool showIndicator = true,
- Widget indicatorBuilder()?,
- double indicatorSpacing = 6,
- double indicatorWidthFactor = 0.6,
- double? indicatorHeight = 4,
- double dotSize = 8,
- double? indicatorOvalBorder,
Implementation
const CarouselWidget({
super.key,
required this.items,
this.height = 220,
this.autoScroll = true,
this.autoScrollInterval = const Duration(seconds: 3),
this.itemSpacing = 5,
this.padding = EdgeInsets.zero,
this.margin = EdgeInsets.zero,
this.borderRadius = 16,
this.borderWidth = 0,
this.borderColor = Colors.transparent,
this.scrollMode = CarouselScrollMode.standard,
this.indicatorType = CarouselIndicatorType.dot,
this.showIndicator = true,
this.indicatorBuilder,
this.indicatorSpacing = 6,
this.indicatorWidthFactor = 0.6,
this.indicatorHeight = 4,
this.dotSize = 8,
this.indicatorOvalBorder,
});