allowNavigation property

bool allowNavigation
final

Allows view navigation when the dragging appointment reaches the start or end position of the view.

See also:

  • allowScroll, which allows to auto scroll the timeslot views when it reaches the start or end position of view port.
Widget build(BuildContext context) {
  return Scaffold(
    body: SfCalendar(
      view: CalendarView.month,
      showWeekNumber: true,
      allowDragAndDrop: true,
      dragAndDropSettings: DragAndDropSettings(
        allowNavigation: true,
        allowScroll: true,
        autoNavigateDelay: Duration(seconds: 1),
        indicatorTimeFormat: 'HH:mm a',
        showTimeIndicator: true,
      ),
    ),
  );
}

Implementation

final bool allowNavigation;