Calendar constructor
const
Calendar({
- Key? key,
- DateTime? initialMonth,
- DateTime? initialSelected,
- ValueChanged<
DateTime> ? onSelected, - DateTimeRange<
DateTime> ? initialRange, - ValueChanged<
DateTimeRange< ? onRangeSelected,DateTime> > - CalendarMode mode = CalendarMode.single,
- String? locale,
- DateFormat? monthFormat,
- List<
String> ? weekdayLabels, - int firstDayOfWeek = DateTime.monday,
- Set<
DateTime> markerDates = const <DateTime>{}, - Color? markerColor,
- Color? selectedColor,
- Color? todayColor,
- Widget dayBuilder()?,
- TextStyle? monthTextStyle,
- TextStyle? weekdayTextStyle,
- TextStyle? dayTextStyle,
- bool showOutsideDays = true,
- bool showTrailingOutsideDays = true,
Implementation
const Calendar({
super.key,
this.initialMonth,
this.initialSelected,
this.onSelected,
this.initialRange,
this.onRangeSelected,
this.mode = CalendarMode.single,
this.locale,
this.monthFormat,
this.weekdayLabels,
this.firstDayOfWeek = DateTime.monday,
this.markerDates = const <DateTime>{},
this.markerColor,
this.selectedColor,
this.todayColor,
this.dayBuilder,
this.monthTextStyle,
this.weekdayTextStyle,
this.dayTextStyle,
this.showOutsideDays = true,
this.showTrailingOutsideDays = true,
});