backgroundColor property
The color to fill the background of the SfDateRangePicker.
Defaults to null.
See also:
SfDateRangePickerThemeData
, to handle theming with date range picker for giving consistent look.- Knowledge base: How to add an image as background
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
view: DateRangePickerView.month,
todayHighlightColor: Colors.red,
backgroundColor: Colors.cyanAccent,
),
),
);
}
Implementation
final Color? backgroundColor;