Home > Blockchain >  How to disable SfCalendar horizontal swipe
How to disable SfCalendar horizontal swipe

Time:10-18

I'm using the Flutter event calendar day view of SfCalendar version 20.3.48. I want to disable the horizontal swipe feature of the widget, only event calendar for a day is required.

SfCalendar(
        view: CalendarView.day,
        todayHighlightColor: kPrimaryColor,
        allowDragAndDrop: false,
        allowViewNavigation: false,
        initialDisplayDate: widget.selectedDate,
        initialSelectedDate: widget.selectedDate,
        dataSource: _getAppointments()
      );

CodePudding user response:

Set viewNavigationMode:

viewNavigationMode: ViewNavigationMode.none,
  • Related