PickerDecoration class

Defines overall configuration for the date picker UI.

Now delegates all styling (text and decoration) to PickerTheme.

Constructors

PickerDecoration({double? width, double? height, TextStyle? textStyle, TextAlign? textAlign, bool? showCursor, Color? cursorColor, double? cursorWidth, double? cursorHeight, Radius? cursorRadius, TextStyle? weekTextStyle, Decoration? menuDecoration, Color? cursorErrorColor, HeaderTheme? headerTheme, bool? enableInteractiveSelection, PickerTheme? pickerTheme})
const

Properties

cursorColor Color?
Color of the cursor in text input.
final
cursorErrorColor Color?
Cursor color when there's an error.
final
cursorHeight double?
Custom height of the cursor.
final
cursorRadius Radius?
Radius of the cursor for rounded edges.
final
cursorWidth double?
Width of the cursor in text input.
final
enableInteractiveSelection bool?
Enables or disables text selection features (long press, copy/paste).
final
hashCode int
The hash code for this object.
no setterinherited
headerTheme HeaderTheme?
Styling configuration for the header section.
final
height double?
Fixed height and width of the picker area.
final
Decoration for dropdowns or overlays.
final
pickerTheme PickerTheme?
Unified styling for cells (day, month, year).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCursor bool?
Whether the cursor should be visible.
final
textAlign TextAlign?
Alignment for text in input fields.
final
textStyle TextStyle?
General text style for input fields (not cells).
final
weekTextStyle TextStyle?
Text style for week names (Mon, Tue, etc.).
final
width double?
Fixed height and width of the picker area.
final

Methods

copyWith({bool? showCursor, Color? cursorColor, TextAlign? textAlign, TextStyle? textStyle, double? cursorWidth, double? height, double? width, Radius? cursorRadius, double? cursorHeight, Color? cursorErrorColor, TextStyle? weekTextStyle, Decoration? menuDecoration, bool? enableInteractiveSelection, HeaderTheme? headerTheme, PickerTheme? pickerTheme}) PickerDecoration
Creates a copy of this decoration with overridden fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited