LightCarousel constructor

const LightCarousel({
  1. Key? key,
  2. List? images,
  3. Curve animationCurve = Curves.ease,
  4. Duration animationDuration = const Duration(milliseconds: 300),
  5. double dotSize = 8.0,
  6. double dotSpacing = 25.0,
  7. double dotIncreaseSize = 2.0,
  8. Color dotColor = Colors.white,
  9. Color? dotBgColor,
  10. Color dotIncreasedColor = Colors.white,
  11. bool showIndicator = true,
  12. double indicatorBgPadding = 20.0,
  13. BoxFit boxFit = BoxFit.cover,
  14. bool borderRadius = false,
  15. Radius? radius,
  16. DotPosition dotPosition = DotPosition.bottomCenter,
  17. double dotHorizontalPadding = 0.0,
  18. double dotVerticalPadding = 0.0,
  19. double moveIndicatorFromBottom = 0.0,
  20. bool noRadiusForIndicator = false,
  21. bool overlayShadow = false,
  22. Color? overlayShadowColors,
  23. double overlayShadowSize = 0.5,
  24. bool autoPlay = true,
  25. Duration autoPlayDuration = const Duration(seconds: 3),
  26. void onImageTap(
    1. int
    )?,
  27. void onImageChange(
    1. int,
    2. int
    )?,
  28. dynamic defaultImage,
})

Implementation

const LightCarousel({
  Key? key,
  this.images,
  this.animationCurve = Curves.ease,
  this.animationDuration = const Duration(milliseconds: 300),
  this.dotSize = 8.0,
  this.dotSpacing = 25.0,
  this.dotIncreaseSize = 2.0,
  this.dotColor = Colors.white,
  this.dotBgColor,
  this.dotIncreasedColor = Colors.white,
  this.showIndicator = true,
  this.indicatorBgPadding = 20.0,
  this.boxFit = BoxFit.cover,
  this.borderRadius = false,
  this.radius,
  this.dotPosition = DotPosition.bottomCenter,
  this.dotHorizontalPadding = 0.0,
  this.dotVerticalPadding = 0.0,
  this.moveIndicatorFromBottom = 0.0,
  this.noRadiusForIndicator = false,
  this.overlayShadow = false,
  this.overlayShadowColors,
  this.overlayShadowSize = 0.5,
  this.autoPlay = true,
  this.autoPlayDuration = const Duration(seconds: 3),
  this.onImageTap,
  this.onImageChange,
  this.defaultImage,
})  : assert(animationCurve != Curves.easeInBack,
          'Do not use Curves.easeInBack it caused animate failed!'),
      super(key: key);