Carousel constructor
const
Carousel({
- Key? key,
- double height = 300,
- required List<
CarouselItem> items, - bool showPages = true,
- Color chipColor = Colors.white,
- BoxFit fit = BoxFit.cover,
- Color textColor = Colors.black,
- ScrollPhysics physics = const BouncingScrollPhysics(),
- Color arrowColor = Colors.white,
- bool canSwipe = true,
- 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,
});