FluentTimePickerStyle class
The visual configuration of a FluentTimePicker — faceplate and listbox.
Shaped like FluentInputStyle, because a time picker is an input with a
listbox hung off it: every visual property is a WidgetStateProperty, so
hover, focus and disabled values live on the property rather than being
branched on at build time.
The faceplate fields are duplicated here rather than nested, matching
FluentTagPickerStyle — a caller overriding a picker's fill should not have
to know which of two structs owns it. Listbox fields are prefixed surface.
Every field is nullable and means "inherit". Resolution order, lowest to highest precedence:
- the appearance/size defaults derived from the theme
- the nearest
FluentTimePickerTheme - the widget's own
style
- Annotations
Constructors
-
FluentTimePickerStyle({WidgetStateProperty<
Color?> ? backgroundColor, WidgetStateProperty<Color?> ? borderColor, WidgetStateProperty<double?> ? borderWidth, WidgetStateProperty<BorderRadius?> ? borderRadius, WidgetStateProperty<Color?> ? underlineColor, WidgetStateProperty<double?> ? underlineWidth, WidgetStateProperty<Color?> ? accentColor, WidgetStateProperty<double?> ? accentWidth, WidgetStateProperty<Color?> ? foregroundColor, WidgetStateProperty<Color?> ? placeholderColor, WidgetStateProperty<TextStyle?> ? textStyle, WidgetStateProperty<EdgeInsetsGeometry?> ? padding, WidgetStateProperty<Size?> ? minimumSize, WidgetStateProperty<MouseCursor?> ? mouseCursor, WidgetStateProperty<Color?> ? iconColor, WidgetStateProperty<double?> ? iconSize, WidgetStateProperty<double?> ? trailingGap, WidgetStateProperty<EdgeInsetsGeometry?> ? trailingPadding, WidgetStateProperty<Color?> ? surfaceColor, WidgetStateProperty<Color?> ? surfaceBorderColor, WidgetStateProperty<double?> ? surfaceBorderWidth, WidgetStateProperty<BorderRadius?> ? surfaceRadius, WidgetStateProperty<EdgeInsetsGeometry?> ? surfacePadding, WidgetStateProperty<double?> ? surfaceGap, WidgetStateProperty<List< ? surfaceShadow, WidgetStateProperty<BoxShadow> ?>double?> ? surfaceMaxHeight, WidgetStateProperty<double?> ? surfaceOffset}) -
Creates a style. Omitted properties inherit.
const
Properties
-
accentColor
→ WidgetStateProperty<
Color?> ? -
The brand rule that grows across the bottom edge while the picker is
focused. Upstream's
::after.final -
accentWidth
→ WidgetStateProperty<
double?> ? -
Height of the accent rule.
final
-
backgroundColor
→ WidgetStateProperty<
Color?> ? -
Faceplate fill.
final
-
borderColor
→ WidgetStateProperty<
Color?> ? -
Faceplate border colour. Null and transparent differ: Fluent's
transparentStroketurns opaque in high contrast.final -
borderRadius
→ WidgetStateProperty<
BorderRadius?> ? -
Faceplate corner radius.
final
-
borderWidth
→ WidgetStateProperty<
double?> ? -
Faceplate border width.
final
-
foregroundColor
→ WidgetStateProperty<
Color?> ? -
Colour of the entered or selected time.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
iconColor
→ WidgetStateProperty<
Color?> ? -
Tone of the expand chevron and the clear glyph.
final
-
iconSize
→ WidgetStateProperty<
double?> ? -
Edge length of the expand chevron and the clear glyph.
final
-
minimumSize
→ WidgetStateProperty<
Size?> ? -
Minimum faceplate size. Only the height is meaningful; a time picker takes
its width from its parent.
final
-
mouseCursor
→ WidgetStateProperty<
MouseCursor?> ? -
Cursor over the faceplate.
final
-
padding
→ WidgetStateProperty<
EdgeInsetsGeometry?> ? -
Inset of the value text inside the faceplate.
final
-
placeholderColor
→ WidgetStateProperty<
Color?> ? -
Colour of the placeholder, a separate ramp rather than a dimmed
foregroundColor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
surfaceBorderColor
→ WidgetStateProperty<
Color?> ? -
Listbox border colour.
final
-
surfaceBorderWidth
→ WidgetStateProperty<
double?> ? -
Listbox border width.
final
-
surfaceColor
→ WidgetStateProperty<
Color?> ? -
Listbox fill.
final
-
surfaceGap
→ WidgetStateProperty<
double?> ? -
Space between listbox rows.
final
-
surfaceMaxHeight
→ WidgetStateProperty<
double?> ? -
Tallest the listbox may grow before it scrolls.
final
-
surfaceOffset
→ WidgetStateProperty<
double?> ? -
Gap between the faceplate and the listbox.
final
-
surfacePadding
→ WidgetStateProperty<
EdgeInsetsGeometry?> ? -
Inset between the listbox edge and its rows.
final
-
surfaceRadius
→ WidgetStateProperty<
BorderRadius?> ? -
Listbox corner radius.
final
-
surfaceShadow
→ WidgetStateProperty<
List< ?BoxShadow> ?> -
Elevation cast by the listbox.
final
-
textStyle
→ WidgetStateProperty<
TextStyle?> ? -
Value and placeholder type ramp. Its colour is overridden by
foregroundColor and placeholderColor.
final
-
trailingGap
→ WidgetStateProperty<
double?> ? -
Space between the clear glyph and the expand chevron.
final
-
trailingPadding
→ WidgetStateProperty<
EdgeInsetsGeometry?> ? -
Inset around the trailing slot.
final
-
underlineColor
→ WidgetStateProperty<
Color?> ? -
The 1px rule along the bottom edge at rest.
final
-
underlineWidth
→ WidgetStateProperty<
double?> ? -
Thickness of the resting bottom rule.
final
Methods
-
copyWith(
{WidgetStateProperty< Color?> ? backgroundColor, WidgetStateProperty<Color?> ? borderColor, WidgetStateProperty<double?> ? borderWidth, WidgetStateProperty<BorderRadius?> ? borderRadius, WidgetStateProperty<Color?> ? underlineColor, WidgetStateProperty<double?> ? underlineWidth, WidgetStateProperty<Color?> ? accentColor, WidgetStateProperty<double?> ? accentWidth, WidgetStateProperty<Color?> ? foregroundColor, WidgetStateProperty<Color?> ? placeholderColor, WidgetStateProperty<TextStyle?> ? textStyle, WidgetStateProperty<EdgeInsetsGeometry?> ? padding, WidgetStateProperty<Size?> ? minimumSize, WidgetStateProperty<MouseCursor?> ? mouseCursor, WidgetStateProperty<Color?> ? iconColor, WidgetStateProperty<double?> ? iconSize, WidgetStateProperty<double?> ? trailingGap, WidgetStateProperty<EdgeInsetsGeometry?> ? trailingPadding, WidgetStateProperty<Color?> ? surfaceColor, WidgetStateProperty<Color?> ? surfaceBorderColor, WidgetStateProperty<double?> ? surfaceBorderWidth, WidgetStateProperty<BorderRadius?> ? surfaceRadius, WidgetStateProperty<EdgeInsetsGeometry?> ? surfacePadding, WidgetStateProperty<double?> ? surfaceGap, WidgetStateProperty<List< ? surfaceShadow, WidgetStateProperty<BoxShadow> ?>double?> ? surfaceMaxHeight, WidgetStateProperty<double?> ? surfaceOffset}) → FluentTimePickerStyle - This style with the given properties replaced.
-
merge(
FluentTimePickerStyle? other) → FluentTimePickerStyle -
This style with the non-null properties of
otherlayered on top. -
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
Static Methods
-
from(
{Color? backgroundColor, Color? borderColor, double? borderWidth, BorderRadius? borderRadius, Color? underlineColor, double? underlineWidth, Color? accentColor, double? accentWidth, Color? foregroundColor, Color? placeholderColor, TextStyle? textStyle, EdgeInsetsGeometry? padding, Size? minimumSize, MouseCursor? mouseCursor, Color? iconColor, double? iconSize, double? trailingGap, EdgeInsetsGeometry? trailingPadding, Color? surfaceColor, Color? surfaceBorderColor, double? surfaceBorderWidth, BorderRadius? surfaceRadius, EdgeInsetsGeometry? surfacePadding, double? surfaceGap, List< BoxShadow> ? surfaceShadow, double? surfaceMaxHeight, double? surfaceOffset}) → FluentTimePickerStyle - Convenience for the common case of one value across every state.