Carousel constructor

Carousel({
  1. required List<Widget> items,
  2. Color activateIndicatorColor = Colors.black,
  3. Curve animationPageCurve = Curves.easeIn,
  4. Duration animationPageDuration = Duration.zero,
  5. bool autoScroll = false,
  6. Duration autoScrollDuration = Duration.zero,
  7. double height = 0.0,
  8. double indicatorBarHeight = 0.0,
  9. double indicatorBarWidth = 0.0,
  10. double indicatorHeight = 10,
  11. double indicatorWidth = 10,
  12. int initialPage = 0,
  13. bool isCircle = true,
  14. Axis scrollAxis = Axis.horizontal,
  15. bool stopAtEnd = false,
  16. Color unActivatedIndicatorColor = Colors.grey,
  17. Color indicatorBarColor = Colors.black,
  18. 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});