CustomCarouselSlider constructor

const CustomCarouselSlider({
  1. Key? key,
  2. required List<CarouselItem> items,
  3. double height = 200,
  4. double? subHeight,
  5. double width = 400,
  6. bool autoplay = true,
  7. Curve animationCurve = Curves.ease,
  8. Duration autoplayDuration = const Duration(seconds: 3),
  9. Duration animationDuration = const Duration(milliseconds: 300),
  10. BoxShape indicatorShape = BoxShape.circle,
  11. double dotSpacing = 5.0,
  12. Color selectedDotColor = Colors.white,
  13. double selectedDotHeight = 8,
  14. double selectedDotWidth = 8,
  15. Color unselectedDotColor = const Color(0XFFACAEBA),
  16. double unselectedDotHeight = 6,
  17. double unselectedDotWidth = 6,
  18. IndicatorPosition indicatorPosition = IndicatorPosition.insidePicture,
  19. bool showSubBackground = true,
  20. bool showText = true,
  21. double boxPaddingHorizontal = 10,
  22. double boxPaddingVertical = 2,
})

Implementation

const CustomCarouselSlider({
  Key? key,
  required this.items,
  this.height = 200,
  this.subHeight,
  this.width = 400,
  this.autoplay = true,
  this.animationCurve = Curves.ease,
  this.autoplayDuration = const Duration(seconds: 3),
  this.animationDuration = const Duration(milliseconds: 300),
  this.indicatorShape = BoxShape.circle,
  this.dotSpacing = 5.0,
  this.selectedDotColor = Colors.white,
  this.selectedDotHeight = 8,
  this.selectedDotWidth = 8,
  this.unselectedDotColor = const Color(0XFFACAEBA),
  this.unselectedDotHeight = 6,
  this.unselectedDotWidth = 6,
  this.indicatorPosition = IndicatorPosition.insidePicture,
  this.showSubBackground = true,
  this.showText = true,
  this.boxPaddingHorizontal = 10,
  this.boxPaddingVertical = 2,
}) : super(key: key);