NiceCarousel constructor
const
NiceCarousel({
- Key? key,
- required List<
Widget> items, - double height = 200,
- bool autoPlay = false,
- Duration autoPlayInterval = const Duration(seconds: 4),
- Duration animationDuration = const Duration(milliseconds: 350),
- Curve animationCurve = Curves.easeInOut,
- bool showIndicators = true,
- bool showArrows = true,
- bool infiniteScroll = true,
- void onPageChanged()?,
- NiceCarouselIndicatorStyle indicatorStyle = const NiceCarouselIndicatorStyle(),
- EdgeInsets? padding,
Implementation
const NiceCarousel({
super.key,
required this.items,
this.height = 200,
this.autoPlay = false,
this.autoPlayInterval = const Duration(seconds: 4),
this.animationDuration = const Duration(milliseconds: 350),
this.animationCurve = Curves.easeInOut,
this.showIndicators = true,
this.showArrows = true,
this.infiniteScroll = true,
this.onPageChanged,
this.indicatorStyle = const NiceCarouselIndicatorStyle(),
this.padding,
});