navigationMode property
Defines the view navigation mode based on its navigationDirection for SfDateRangePicker.
Defaults to DateRangePickerNavigationMode.snap
See also:
- navigationDirection, which allows to customize the navigation direction of the date range picker with available options.
- minDate, which is the least available date in the date range picker.
- maxDate, which is the last available date in the date range picker.
- enableMultiView, which allows to display multiple picker side by side based on the navigation direction.
- Knowledge base: How to show two pickers vertically
- Knowledge base: How to change the navigation direction
- Knowledge base: How to restrict the view navigation
Widget build(BuildContext context) {
return Container(
child: SfDateRangePicker(
navigationMode: DateRangePickerNavigationMode.scroll,
),
);
}
Implementation
final DateRangePickerNavigationMode navigationMode;