TimelineCarousel constructor

const TimelineCarousel({
  1. Key? key,
  2. required List<TimelineItem> items,
  3. TimelineCarouselController? controller,
  4. double height = 300,
  5. bool showArrows = true,
  6. bool autoPlay = false,
  7. Duration autoPlayInterval = const Duration(seconds: 3),
  8. Color timelineColor = Colors.blue,
  9. Color activeDotColor = Colors.blue,
  10. Color inactiveDotColor = Colors.grey,
  11. double lineThickness = 2.0,
  12. double dotSize = 12.0,
  13. bool showTimeline = true,
  14. Curve animationCurve = Curves.easeInOut,
  15. Duration animationDuration = const Duration(milliseconds: 300),
  16. ValueChanged<int>? onItemChanged,
  17. EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
  18. Color? backgroundColor,
  19. double cardBorderRadius = 12.0,
  20. List<BoxShadow>? cardShadow,
  21. bool timelineOnRight = false,
})

Implementation

const TimelineCarousel({
  Key? key,
  required this.items,
  this.controller,
  this.height = 300,
  this.showArrows = true,
  this.autoPlay = false,
  this.autoPlayInterval = const Duration(seconds: 3),
  this.timelineColor = Colors.blue,
  this.activeDotColor = Colors.blue,
  this.inactiveDotColor = Colors.grey,
  this.lineThickness = 2.0,
  this.dotSize = 12.0,
  this.showTimeline = true,
  this.animationCurve = Curves.easeInOut,
  this.animationDuration = const Duration(milliseconds: 300),
  this.onItemChanged,
  this.padding = const EdgeInsets.all(16.0),
  this.backgroundColor,
  this.cardBorderRadius = 12.0,
  this.cardShadow,
  this.timelineOnRight = false,
}) : super(key: key);