You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Flutter/DateRangePicker/selections.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,33 @@ Extend the selected range with the new selected date in any date range picker vi
139
139
>**NOTE**
140
140
* The hovering effect which occurs while extending the range will not be displayed when the `DateRangePickerNavigationMode` is set as `DateRangePickerNavigationMode.scroll`.
141
141
142
+
## Extendable range selection Direction
143
+
It allows to extend the selection direction by using the [extendableRangeSelectionDirection]() property of the DateRangePicker.
144
+
You can set the extendable range selection direction as forward, backward, both and none.
* If it is set to none, it won't allow to extend the selection. It will remain in the initial range.
167
+
* If it is set to forward direction, the start date will not be changed here.
168
+
* If it is set to backward direction, the end date will not be changed here.
142
169
143
170
## Selection radius
144
171
Customize the radius of the selection using the [selectionRadius](https://pub.dev/documentation/syncfusion_flutter_datepicker/latest/datepicker/SfDateRangePicker/selectionRadius.html) property of the `SfDateRangePicker`.
if (details!.targetElement == CalendarElement.appointment) {
100
+
dynamic appointments = details.appointments;
101
+
final String subject =
102
+
details.appointments![0].subject.toString();
103
+
final dynamic startTime = details.appointments![0].startTime;
104
+
final dynamic endTime = details.appointments![0].endTime;
105
+
}
106
+
},
107
+
child: SfCalendar(
108
+
view: CalendarView.month,
109
+
controller: _calendarController,
110
+
dataSource: _getCalendarDataSource(),
111
+
))),
112
+
);
113
+
}
114
+
}
115
+
116
+
{% endhighlight %}
117
+
{% endtabs %}
118
+
79
119
## Long press callback
80
120
The [onLongPress](https://pub.dev/documentation/syncfusion_flutter_calendar/latest/calendar/SfCalendar/onLongPress.html) callback is called, whenever the `SfCalendar` elements are long pressed on view.
0 commit comments