showActionButtons property
Displays confirm and cancel buttons on the date range picker to perform the confirm and cancel actions.
The onSubmit and onCancel callback is called based on the actions of the buttons.
See also:
- HijriDatePickerMonthViewSettings.enableSwipeSelection, which allows to select the cells on swipe when the selection mode set as DateRangePickerSelectionMode.range, DateRangePickerSelectionMode.multiRange, and DateRangePickerSelectionMode.extendableRange.
- selectionMode, which allows to customize the selection mode with available mode options.
- allowViewNavigation, which allows to navigate between views quickly,
and setting this property as
false
, allows to select the cells on year and decade view of hijri date range picker. - onSelectionChanged, callback which notifies whenever the selection changed on hijri date range picker.
- selectionRadius, which is the radius for the selection view in the hijri date range picker when the selection shape set as DateRangePickerSelectionShape.circle.
- onSubmit, callback which notifies when the selection confirmed through the ok button of showActionButtons.
- onCancel, callback which notifies when the selection canceled through the cancel button of showActionButtons.
- Knowledge base: How to get the selected date
- Knowledge base: How to confirm or cancel the selection
- Knowledge base: How to get the start and end date of the selected range
- Knowledge base: How to programmatically select the date
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Date Range Picker'),
),
body: Container(
child: SfHijriDateRangePicker(
cancelText: 'Dismiss',
confirmText: 'Confirm',
showActionButtons: true,
)));
}
Implementation
final bool showActionButtons;