viewHeaderHeight property
The height of the view header to the layout within this in month view of SfDateRangePicker.
Defaults to 30
.
See also:
- viewHeaderStyle, which used to customize the view header view of the month view in date range picker.
- dayFormat, which is used to customize the format of the view header text in the month view of date range picker.
- SfDateRangePicker.todayHighlightColor, which highlights the today date cell in the date range picker.
- Knowledge base: How to replace the view header with the custom widget
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
controller: _pickerController,
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
monthViewSettings:
DateRangePickerMonthViewSettings(viewHeaderHeight: 50),
),
),
);
}
Implementation
final double viewHeaderHeight;