What is the method to activate the duration between startDate and endDate in SfCalendar?
add a comment
To activate the duration between startDate and endDate in SfCalendar, you can follow these steps:
calendar.startDate = DateTime.now();
calendar.endDate = DateTime.now().add(Duration(days: 7)); // set end date as 7 days from now
calendar.selectionMode = CalendarSelectionMode.range;
calendar.selectedRange = DateRange(calendar.startDate, calendar.endDate);
This will activate the duration between the startDate and endDate in SfCalendar.
Asked: 2023-05-31 23:12:06 +0000
Seen: 9 times
Last updated: May 31 '23