TimelineCarousel constructor
const
TimelineCarousel({
- Key? key,
- required List<
TimelineItem> items, - TimelineCarouselController? controller,
- double height = 300,
- bool showArrows = true,
- bool autoPlay = false,
- Duration autoPlayInterval = const Duration(seconds: 3),
- Color timelineColor = Colors.blue,
- Color activeDotColor = Colors.blue,
- Color inactiveDotColor = Colors.grey,
- double lineThickness = 2.0,
- double dotSize = 12.0,
- bool showTimeline = true,
- Curve animationCurve = Curves.easeInOut,
- Duration animationDuration = const Duration(milliseconds: 300),
- ValueChanged<
int> ? onItemChanged, - EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
- Color? backgroundColor,
- double cardBorderRadius = 12.0,
- List<
BoxShadow> ? cardShadow, - 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);