HorizontalView constructor
const
HorizontalView({
- Key? key,
- BoxDecoration? decoration,
- BoxDecoration? userPickedDecoration,
- Widget? defaultChild,
- Widget? userPickedChild,
- bool showMonthYearPicker = false,
- 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,
- MCalendarController? controller,
- CalendarAnimations? animations,
- required DateTime selectedMonth,
- required void onUserPicked(),
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, and acts as the lower date bound.
Implementation
const HorizontalView({
super.key,
this.decoration,
this.userPickedDecoration,
this.defaultChild,
this.userPickedChild,
this.showMonthYearPicker = false,
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,
this.controller,
this.animations,
required this.selectedMonth,
required this.onUserPicked,
});