confirmText property
Text that displays on the confirm 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.
- cancelText, which is text that display on the cancel 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(
confirmText: 'Confirm',
showActionButtons: true,
)));
}
Implementation
final String confirmText;