cancelText property
Text that displays on the cancel button.
See also:
- showActionButtons, which allows to display action buttons at the bottom of the date range picker to handle the selection.
- onSelectionChanged, callback which notifies whenever the selection changed on date range picker.
- confirmText, which is text that display on the confirm button.
- 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 confirm or cancel the selection
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Date Range Picker'),
),
body: Container(
child: SfDateRangePicker(
cancelText: 'Dismiss',
showActionButtons: true,
)));
}
Implementation
final String cancelText;