allowViewNavigation property
Used to enable or disable the view switching between HijriDatePickerView through interaction in the SfHijriDateRangePicker header.
Selection is allowed for year and decade views when the allowViewNavigation property is false. Otherwise, year and decade views are allowed only for view navigation.
Defaults to true
.
See also:
- view, which allows to set different views which display initially on hijri date range picker.
- HijriDatePickerController.view, which allows to set different views dynamically on hijri date range picker.
- Knowledge base: How to restrict the year view navigation while tapping header
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
allowViewNavigation: false,
),
),
);
}
Implementation
final bool allowViewNavigation;