Hi Raquel,
As per the current implementation, allowViewNavigation property
used to navigate to the day
view by tapping on the month cell and view header of the calendar views
and viewNavigationMode property is used to restrict
the previous or next views navigation through
interaction. There is no direct support to disable the view navigation
using keyboard interaction, but you can achieve this requirement by handling
the minDate and maxDate as per your requirement dynamically.
Example Code snippet:
|
child: SfCalendar(
view:
CalendarView.workWeek,
viewNavigationMode: ViewNavigationMode.none,
showNavigationArrow: true,
minDate: DateTime(2023, 6, 5, 9, 0, 0),
maxDate: DateTime(2023, 6, 9, 9, 0, 0),
),
|
Also please find the UG documentation for min and max dates.
https://help.syncfusion.com/flutter/calendar/date-navigations#minimum-display-date
https://help.syncfusion.com/flutter/calendar/date-navigations#maximum-display-date
Please find the KB documentation for restricting the visible date
range.
https://support.syncfusion.com/kb/article/10740/how-to-restrict-the-visible-date-ranges-in-the-flutter-calendar
we hope that this helps you. Please let us know if you need
further assistance.
Regards,
Indumathi R