TimePickerTheme class
Theme configuration for TimePicker widget appearance and behavior.
Defines default settings for time picker components including display format, popover positioning, and dialog customization.
- Inheritance
-
- Object
- ComponentThemeData
- TimePickerTheme
Constructors
- TimePickerTheme({PromptMode? mode, AlignmentGeometry? popoverAlignment, AlignmentGeometry? popoverAnchorAlignment, EdgeInsetsGeometry? popoverPadding, bool? use24HourFormat, bool? showSeconds, Widget? dialogTitle})
-
Creates a TimePickerTheme.
const
Properties
- dialogTitle → Widget?
-
Custom title widget for the time picker dialog.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode → PromptMode?
-
Mode for displaying the time picker (popover or dialog).
final
- popoverAlignment → AlignmentGeometry?
-
Alignment of the popover relative to its anchor.
final
- popoverAnchorAlignment → AlignmentGeometry?
-
Alignment point on the anchor widget for popover positioning.
final
- popoverPadding → EdgeInsetsGeometry?
-
Padding inside the popover.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showSeconds → bool?
-
Whether to show seconds picker.
final
- use24HourFormat → bool?
-
Whether to use 24-hour time format.
final
Methods
-
copyWith(
{ValueGetter< PromptMode?> ? mode, ValueGetter<AlignmentGeometry?> ? popoverAlignment, ValueGetter<AlignmentGeometry?> ? popoverAnchorAlignment, ValueGetter<EdgeInsetsGeometry?> ? popoverPadding, ValueGetter<bool?> ? use24HourFormat, ValueGetter<bool?> ? showSeconds, ValueGetter<Widget?> ? dialogTitle}) → TimePickerTheme - Creates a copy of this theme with the given fields replaced.
-
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.
override