showNavigationArrow property
Displays the navigation arrows on the header view of SfDateRangePicker.
If this property set as true
the header view of SfDateRangePicker will
display the navigation arrows which used to navigate to the previous/next
views through the navigation icon buttons.
defaults to false
.
Note: If the DateRangePickerSelectionMode set as range or multi range
then the navigation arrows will be shown in the header by default, even if
the showNavigationArrow property set as false
.
If the DateRangePickerMonthViewSettings.enableSwipeSelection set as
false
the navigation arrows will be shown, only whn the
showNavigationArrow property set as true
.
See also:
- DateRangePickerController.forward, which allows to navigate to next view of the date range picker programmatically.
- DateRangePickerController.backward, which allows to navigate to previous view of the date range picker programmatically.
- Knowledge base: How to navigate to the previous or next dates using navigation arrows
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.multiple,
showNavigationArrow: true,
),
),
);
}
}
Implementation
final bool showNavigationArrow;