YearPickerTimeline constructor
const
YearPickerTimeline({
- Key? key,
- required DateTime startDate,
- DateTime? initialSelectedDate,
- double width = 70,
- int yearCount = 12,
- double height = 80,
- String locale = "de_DE",
- TextStyle? yearTextStyle = defaultYearTextStyle,
- YearPickerTimelineController? controller,
- DateChangeListener? onDateChange,
- Color selectedTextColor = Colors.white,
- Color iconColor = Colors.white,
- Color selectionColor = AppColors.defaultSelectionColor,
- 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,
),
),
});