YearPickerTimeline constructor

const YearPickerTimeline({
  1. Key? key,
  2. required DateTime startDate,
  3. DateTime? initialSelectedDate,
  4. double width = 70,
  5. int yearCount = 12,
  6. double height = 80,
  7. String locale = "de_DE",
  8. TextStyle? yearTextStyle = defaultYearTextStyle,
  9. YearPickerTimelineController? controller,
  10. DateChangeListener? onDateChange,
  11. Color selectedTextColor = Colors.white,
  12. Color iconColor = Colors.white,
  13. Color selectionColor = AppColors.defaultSelectionColor,
  14. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8.0)),
})

Implementation

const YearPickerTimeline({
  super.key,
  required this.startDate,
  this.initialSelectedDate,
  this.width = 70,
  this.yearCount = 12,
  this.height = 80,
  this.locale = "de_DE",
  this.yearTextStyle = defaultYearTextStyle,
  this.controller,
  this.onDateChange,
  this.selectedTextColor = Colors.white,
  this.iconColor = Colors.white,
  this.selectionColor = AppColors.defaultSelectionColor,
  this.borderRadius = const BorderRadius.all(
    Radius.circular(
      8.0,
    ),
  ),
});