Carousel constructor
const
Carousel({
- Key? key,
- required List<
Map> images, - Color? backgroundColor,
- Color? currentPageIndicatorColor,
- int mainHeight = 400,
- int previewHeight = 60,
- double radius = 16,
- double previewRadius = 16,
- double padding = 8,
- double previewPadding = 8,
- double currentPageIndicatorRadius = 2.0,
- double currentPageIndicatorPadding = 1,
- int? duration,
- Curve? curve,
Creates a Carousel widget.
Implementation
const Carousel({
super.key,
required this.images,
this.backgroundColor,
this.currentPageIndicatorColor,
this.mainHeight = 400,
this.previewHeight = 60,
this.radius = 16,
this.previewRadius = 16,
this.padding = 8,
this.previewPadding = 8,
this.currentPageIndicatorRadius = 2.0,
this.currentPageIndicatorPadding = 1,
this.duration,
this.curve,
});