AdaptiveTimeline constructor

const AdaptiveTimeline({
  1. Key? key,
  2. required List<AdaptiveTimelineEntry> entries,
  3. AdaptiveSize horizontalAt = AdaptiveSize.medium,
  4. AdaptiveHeight minimumHorizontalHeight = AdaptiveHeight.compact,
  5. bool useContainerConstraints = true,
  6. bool considerOrientation = false,
  7. double entryWidth = 260,
  8. double entrySpacing = 20,
  9. EdgeInsetsGeometry cardPadding = const EdgeInsets.all(16),
  10. bool animateTransitions = true,
  11. Duration transitionDuration = const Duration(milliseconds: 250),
  12. Curve transitionCurve = Curves.easeInOutCubic,
})

Creates an adaptive timeline.

Implementation

const AdaptiveTimeline({
  super.key,
  required this.entries,
  this.horizontalAt = AdaptiveSize.medium,
  this.minimumHorizontalHeight = AdaptiveHeight.compact,
  this.useContainerConstraints = true,
  this.considerOrientation = false,
  this.entryWidth = 260,
  this.entrySpacing = 20,
  this.cardPadding = const EdgeInsets.all(16),
  this.animateTransitions = true,
  this.transitionDuration = const Duration(milliseconds: 250),
  this.transitionCurve = Curves.easeInOutCubic,
});