DatePickerView constructor

const DatePickerView({
  1. Key? key,
  2. required DateTime currentDate,
  3. required DateTime startDate,
  4. required DateTime endDate,
  5. TextStyle? yearMonth,
  6. double dateSpacing = 10,
  7. required dynamic onDateClick(
    1. DateTime selectedDate
    ),
  8. Color? color,
  9. Color? activeColor,
  10. TextStyle? day = const TextStyle(fontSize: 20),
  11. TextStyle? weekday = const TextStyle(),
  12. Color? activeDay,
  13. Color? activeWeekday,
  14. Color? dayColor,
  15. Color? weekdayColor,
  16. double dayWeekHeight = 4,
  17. BoxDecoration decoration = const BoxDecoration(),
})

Implementation

const DatePickerView({
  super.key,
  required this.currentDate,
  required this.startDate,
  required this.endDate,
  this.yearMonth,
  this.dateSpacing = 10,
  required this.onDateClick,
  this.color,
  this.activeColor,
  this.day = const TextStyle(fontSize: 20),
  this.weekday = const TextStyle(),
  this.activeDay,
  this.activeWeekday,
  this.dayColor,
  this.weekdayColor,
  this.dayWeekHeight = 4,
  this.decoration = const BoxDecoration(),
});