HorizontalView constructor

const HorizontalView({
  1. Key? key,
  2. BoxDecoration? decoration,
  3. BoxDecoration? userPickedDecoration,
  4. Widget? defaultChild,
  5. Widget? userPickedChild,
  6. required bool showMonthYearPicker,
  7. TextStyle? headerTextStyle,
  8. Color? headerIconColor,
  9. double? headerHeight,
  10. Color? monthYearPickerSelectedMonthColor,
  11. Color? monthYearPickerUnselectedMonthColor,
  12. int? monthYearPickerCrossAxisCount,
  13. double? monthYearPickerChildAspectRatio,
  14. BoxDecoration? monthYearPickerMonthItemDecoration,
  15. bool showWeekDays = true,
  16. TextStyle? dateTextStyle,
  17. TextStyle? weekDaysTextStyle,
  18. TextStyle? selectedDateTextStyle,
  19. TextStyle? selectedWeekDaysTextStyle,
  20. DateTime? endDate,
  21. DateTime? initialDate,
  22. 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,
});