allowViewNavigation property
Determines whether view switching is allowed among CalendarViews on interaction.
Defaults to 'false'.
See also:
- showDatePickerButton, to show date picker for quickly navigating to a different date.
- allowedViews to show list of calendar views on header view for quick navigation.
- Knowledge base: How to switch between views
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.month,
allowViewNavigation: true,
),
);
}
Implementation
final bool allowViewNavigation;