showDatePickerButton property
Displays the date picker when the SfCalendar header date is tapped.
The date picker will be used for quick date navigation in SfCalendar.
Defaults to false
.
see also:
- allowedViews to show list of calendar views on header view for quick navigation.
SfDateRangePicker
, material widget which displays on the header of calendar, when the header date tapped.- How to add indicator in month cells of date range picker
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.day,
showDatePickerButton: true,
),
);
}
Implementation
final bool showDatePickerButton;