Carousel constructor
Carousel({
- required List<
Widget> items, - Color activateIndicatorColor = Colors.black,
- Curve animationPageCurve = Curves.easeIn,
- Duration animationPageDuration = Duration.zero,
- bool autoScroll = false,
- Duration autoScrollDuration = Duration.zero,
- double height = 0.0,
- double indicatorBarHeight = 0.0,
- double indicatorBarWidth = 0.0,
- double indicatorHeight = 10,
- double indicatorWidth = 10,
- int initialPage = 0,
- bool isCircle = true,
- Axis scrollAxis = Axis.horizontal,
- bool stopAtEnd = false,
- Color unActivatedIndicatorColor = Colors.grey,
- Color indicatorBarColor = Colors.black,
- double width = 0.0,
Implementation
Carousel(
{required this.items,
this.activateIndicatorColor = Colors.black,
this.animationPageCurve = Curves.easeIn,
this.animationPageDuration = Duration.zero,
this.autoScroll = false,
this.autoScrollDuration = Duration.zero,
this.height = 0.0,
this.indicatorBarHeight = 0.0,
this.indicatorBarWidth = 0.0,
this.indicatorHeight = 10,
this.indicatorWidth = 10,
this.initialPage = 0,
this.isCircle = true,
this.scrollAxis = Axis.horizontal,
this.stopAtEnd = false,
this.unActivatedIndicatorColor = Colors.grey,
this.indicatorBarColor = Colors.black,
this.width = 0.0});