todayHighlightColor property
Color that highlights the today date cell in SfDateRangePicker.
Allows to change the color that highlights the today date cell border in month, year, decade and century view in date range picker.
Defaults to null.
See also:
SfDateRangePickerThemeData
, to handle theming with date range picker for giving consistent look.- monthCellStyle, which allows to customize the month cells in the date range picker.
- yearCellStyle, which allows to customize the year cells in the date range picker.
- Knowledge base: How to style the current month date cell
- Knowledge base: How to style the year, decade and century views
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
view: DateRangePickerView.month,
todayHighlightColor: Colors.red,
showNavigationArrow: true,
),
),
);
}
Implementation
final Color? todayHighlightColor;