LightCarousel constructor
const
LightCarousel({
- Key? key,
- List? images,
- Curve animationCurve = Curves.ease,
- Duration animationDuration = const Duration(milliseconds: 300),
- double dotSize = 8.0,
- double dotSpacing = 25.0,
- double dotIncreaseSize = 2.0,
- Color dotColor = Colors.white,
- Color? dotBgColor,
- Color dotIncreasedColor = Colors.white,
- bool showIndicator = true,
- double indicatorBgPadding = 20.0,
- BoxFit boxFit = BoxFit.cover,
- bool borderRadius = false,
- Radius? radius,
- DotPosition dotPosition = DotPosition.bottomCenter,
- double dotHorizontalPadding = 0.0,
- double dotVerticalPadding = 0.0,
- double moveIndicatorFromBottom = 0.0,
- bool noRadiusForIndicator = false,
- bool overlayShadow = false,
- Color? overlayShadowColors,
- double overlayShadowSize = 0.5,
- bool autoPlay = true,
- Duration autoPlayDuration = const Duration(seconds: 3),
- void onImageTap()?,
- void onImageChange()?,
- 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,
}) : super(key: key);