selectionShape property

DateRangePickerSelectionShape selectionShape
final

Defines the shape for the selection view in SfDateRangePicker.

If this property set as DateRangePickerSelectionShape.rectangle the widget will render the date selection in the rectangle shape in month view.

Defaults to DateRangePickerSelectionShape.circle.

Note: When the view set with any other view than DateRangePickerView.month the today cell highlight shape will be determined by this property.

If the DateRangePickerSelectionShape is set as DateRangePickerSelectionShape.circle, then the circle radius can be adjusted in month view by using the selectionRadius property.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.multiple,
         showNavigationArrow: true,
         selectionShape: DateRangePickerSelectionShape.rectangle,
       ),
     ),
   );
 }

Implementation

final DateRangePickerSelectionShape selectionShape;