Carousel constructor

const Carousel({
  1. Key? key,
  2. required List<Map> images,
  3. Color? backgroundColor,
  4. Color? currentPageIndicatorColor,
  5. double mainHeight = 420.0,
  6. double previewHeight = 60.0,
  7. double radius = 16,
  8. double previewRadius = 16,
  9. double padding = 8,
  10. double previewPadding = 8,
  11. double currentPageIndicatorRadius = 2.0,
  12. double currentPageIndicatorPadding = 1,
  13. int? duration,
  14. 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,
});