NiceCarousel constructor

const NiceCarousel({
  1. Key? key,
  2. required List<Widget> items,
  3. double height = 200,
  4. bool autoPlay = false,
  5. Duration autoPlayInterval = const Duration(seconds: 4),
  6. Duration animationDuration = const Duration(milliseconds: 350),
  7. Curve animationCurve = Curves.easeInOut,
  8. bool showIndicators = true,
  9. bool showArrows = true,
  10. bool infiniteScroll = true,
  11. void onPageChanged(
    1. int
    )?,
  12. NiceCarouselIndicatorStyle indicatorStyle = const NiceCarouselIndicatorStyle(),
  13. 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,
});