PickerTheme class
A guide class that defines all available text styles and decorations for customizing the date picker (day, month, and year views).
Use this to provide consistent styling across focus, selection, and hover states.
Constructors
- PickerTheme({TextStyle? disableTextStyle, TextStyle? focusTextStyle, BoxDecoration? disableDecoration, BoxDecoration? currentMonthDecoration, TextStyle? selectedTextStyle, TextStyle? unSelectedTextStyle, BoxDecoration? focusDecoration, BoxDecoration? selectedDecoration, TextStyle? currentMothTextStyle, BoxDecoration? unSelectedDecoration, double? hoverRadius, Color? hoverColor, Color? focusColor})
-
const
Properties
- currentMonthDecoration → BoxDecoration?
-
final
- currentMothTextStyle → TextStyle?
-
final
- disableDecoration → BoxDecoration?
-
final
- disableTextStyle → TextStyle?
-
Style for disabled cells (e.g., days outside allowed range).
final
- focusColor → Color?
-
Background color when a cell is focused.
final
- focusDecoration → BoxDecoration?
-
Decoration for the focused cell (border, background, etc.).
final
- focusTextStyle → TextStyle?
-
Style for the focused cell (e.g., hovered or keyboard-focused item).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → Color?
-
Background color when a cell is hovered.
final
- hoverRadius → double?
-
Hover effect radius for cells.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDecoration → BoxDecoration?
-
Decoration for the selected cell (border, background, etc.).
final
- selectedTextStyle → TextStyle?
-
Style for the selected cell (chosen day, month, or year).
final
- unSelectedDecoration → BoxDecoration?
-
Decoration for unselected but enabled cells.
final
- unSelectedTextStyle → TextStyle?
-
Style for unselected but enabled cells (default text style).
final
Methods
-
copyWith(
{TextStyle? disableTextStyle, TextStyle? focusTextStyle, TextStyle? currentMothTextStyle, TextStyle? selectedTextStyle, TextStyle? unSelectedTextStyle, BoxDecoration? focusDecoration, BoxDecoration? selectedDecoration, BoxDecoration? unSelectedDecoration, BoxDecoration? currentMonthDecoration, BoxDecoration? disableDecoration, double? hoverRadius, Color? hoverColor, Color? focusColor}) → PickerTheme - Creates a new PickerTheme by overriding selected 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