Carousel constructor
const
Carousel({
- Key? key,
- required List<
Map> images, - Color? backgroundColor,
- Color? currentPageIndicatorColor,
- double mainHeight = 420.0,
- double previewHeight = 60.0,
- double radius = 16,
- double previewRadius = 16,
- double padding = 8,
- double previewPadding = 8,
- double currentPageIndicatorRadius = 2.0,
- double currentPageIndicatorPadding = 1,
- int? duration,
- Curve? curve,
A widget that displays a carousel of images with a preview and page indicator.
Implementation
const Carousel({
super.key,
required this.images,
this.backgroundColor,
this.currentPageIndicatorColor,
this.mainHeight = 420.0,
this.previewHeight = 60.0,
this.radius = 16,
this.previewRadius = 16,
this.padding = 8,
this.previewPadding = 8,
this.currentPageIndicatorRadius = 2.0,
this.currentPageIndicatorPadding = 1,
this.duration,
this.curve,
});