showTodayButton property
Displays the today button on the bottom of date range picker.
The today button allows to navigate to the today date quickly in all view of date range picker.
Defaults to false
.
See also:
- showActionButtons, which used to handle the selected value.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
showTodayButton: true,
),
),
);
}
Implementation
final bool showTodayButton;