GlassCalendar constructor
- Key? key,
- required DateTime? selectedDate,
- required ValueChanged<
DateTime> ? onDateSelected, - DateTime? initialMonth,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTime? currentDate,
- int firstDayOfWeek = DateTime.monday,
- ValueChanged<
DateTime> ? onMonthChanged, - Color? activeColor,
- double maxWidth = 360,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
Creates a calendar; firstDayOfWeek is a DateTime weekday, from DateTime.monday to DateTime.sunday.
Implementation
const GlassCalendar({
super.key,
required this.selectedDate,
required this.onDateSelected,
this.initialMonth,
this.firstDate,
this.lastDate,
this.currentDate,
this.firstDayOfWeek = DateTime.monday,
this.onMonthChanged,
this.activeColor,
this.maxWidth = 360,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : assert(firstDayOfWeek >= DateTime.monday && firstDayOfWeek <= DateTime.sunday);