Carousel constructor

const Carousel({
  1. Key? key,
  2. double height = 300,
  3. required List<CarouselItem> items,
  4. bool showPages = true,
  5. Color chipColor = Colors.white,
  6. BoxFit fit = BoxFit.cover,
  7. Color textColor = Colors.black,
  8. ScrollPhysics physics = const BouncingScrollPhysics(),
  9. Color arrowColor = Colors.white,
  10. bool canSwipe = true,
  11. TextStyle? textStyle,
})

Implementation

const Carousel({
  super.key,
  this.height = 300,
  required this.items,
  this.showPages = true,
  this.chipColor = Colors.white,
  this.fit = BoxFit.cover,
  this.textColor = Colors.black,
  this.physics = const BouncingScrollPhysics(),
  this.arrowColor = Colors.white,
  this.canSwipe = true,
  this.textStyle,
});