DateRangePickerWeekNumberStyle class
Sets the style to customize the week number of SfDateRangePicker.
Allows to customize the backgroundColor, textStyle week number in month view of date Range Picker.
See also:
- DateRangePickerMonthViewSettings, which is used to customize the month view of the date range picker.
- HijriDatePickerMonthViewSettings, which is used to customize the month view of the hijri date range picker.
Widget build(BuildContext context) {
return Scaffold(
body: SfDateRangePicker(
view: DateRangePickerView.month,
monthViewSettings: const DateRangePickerMonthViewSettings(
showWeekNumber: true,
weekNumberStyle: const DateRangePickerWeekNumberStyle(
textStyle: TextStyle(fontStyle: FontStyle.italic),
backgroundColor: Colors.purple),
),
),
);
}
- Mixed-in types
- Annotations
Constructors
- DateRangePickerWeekNumberStyle({TextStyle? textStyle, Color? backgroundColor})
-
Creates a week number style for month view in SfDateRangePicker.
const
Properties
- backgroundColor → Color?
-
The color which fills the background of SfDateRangePicker view header in
month view.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
The text style for the text in the SfDateRangePicker view header view of
month view.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override