HorizontalView constructor
const
HorizontalView({
- Key? key,
- BoxDecoration? decoration,
- BoxDecoration? userPickedDecoration,
- Widget? defaultChild,
- Widget? userPickedChild,
- required bool showMonthYearPicker,
- TextStyle? headerTextStyle,
- Color? headerIconColor,
- double? headerHeight,
- Color? monthYearPickerSelectedMonthColor,
- Color? monthYearPickerUnselectedMonthColor,
- int? monthYearPickerCrossAxisCount,
- double? monthYearPickerChildAspectRatio,
- BoxDecoration? monthYearPickerMonthItemDecoration,
- bool showWeekDays = true,
- TextStyle? dateTextStyle,
- TextStyle? weekDaysTextStyle,
- TextStyle? selectedDateTextStyle,
- TextStyle? selectedWeekDaysTextStyle,
- DateTime? endDate,
- DateTime? initialDate,
- bool autoScroll = true,
Creates a new instance of the HorizontalView widget.
showMonthYearPicker controls whether the month/year picker header is
shown. initialDate (optional) determines where the list will auto-scroll
on first build when autoScroll is true.
Implementation
const HorizontalView({
super.key,
this.decoration,
this.userPickedDecoration,
this.defaultChild,
this.userPickedChild,
required this.showMonthYearPicker,
this.headerTextStyle,
this.headerIconColor,
this.headerHeight,
this.monthYearPickerSelectedMonthColor,
this.monthYearPickerUnselectedMonthColor,
this.monthYearPickerCrossAxisCount,
this.monthYearPickerChildAspectRatio,
this.monthYearPickerMonthItemDecoration,
this.showWeekDays = true,
this.dateTextStyle,
this.weekDaysTextStyle,
this.selectedDateTextStyle,
this.selectedWeekDaysTextStyle,
this.endDate,
this.initialDate,
this.autoScroll = true,
});