In the Flutter Event Calendar, restrict the view navigation by using the viewNavigationMode property value as None. child: Column( children: [ Container( child: TextButton( child: Text('Restrict view navigation'), onPressed: () { setState(() { _viewNavigationMode = ViewNavigationMode.none; }); }, ), ), Expanded( child: SafeArea( child: SfCalendar( view: CalendarView.day, allowedViews: [ CalendarView.day, CalendarView.week, CalendarView.workWeek, CalendarView.month, CalendarView.timelineDay, CalendarView.timelineWeek, CalendarView.timelineWorkWeek, CalendarView.timelineMonth, ], dataSource: _getCalendarDataSource(), viewNavigationMode: _viewNavigationMode, )), ) ], ),
|
This page will automatically be redirected to the sign-in page in 10 seconds.