navigationDirection property Null safety

MonthNavigationDirection navigationDirection
final

The direction tht SfCalendar month view is navigating in.

If it this property set as MonthNavigationDirection.vertical the SfCalendar month view will navigate to the previous/next views in the vertical direction instead of the horizontal direction.

Defaults to MonthNavigationDirection.horizontal.

See also:

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.month,
       monthViewSettings: MonthViewSettings(
          dayFormat: 'EEE',
          numberOfWeeksInView: 4,
          appointmentDisplayCount: 2,
          appointmentDisplayMode: MonthAppointmentDisplayMode.appointment,
          showAgenda: false,
          navigationDirection: MonthNavigationDirection.horizontal),
     ),
   );
 }

Implementation

final MonthNavigationDirection navigationDirection;