UnifiedInputFieldDefaults class

Default layout and behavior for UnifiedBaseTextField via UnifiedInputThemeData.fieldDefaults.

Each value is optional; field-level parameters and UnifiedInputDecoration still win.

Annotations

Constructors

UnifiedInputFieldDefaults({UnifiedFieldLabelMode? labelMode, bool? labelInRow, List<int>? rowLabelRatio, double? height, BorderRadius? borderRadius, BorderSide? borderSide, Color? backgroundColor, Color? headerBackgroundColor, bool? showError, bool? showClearButton, bool? resetTextWhenLocked, AutovalidateMode? autovalidateMode, EdgeInsetsGeometry? contentPadding, bool? mustResolveTextDirectionByInput, TextStyle? placeholderStyle, UnifiedInputLabelModeStyle? labelInRowStyle, UnifiedInputLabelModeStyle? labelInColumnStyle, UnifiedInputLabelModeStyle? floatingLabelStyle, bool? selectTextOnFocus, TextStyle? textStyle, TextStyle? textStylePersian})
Creates subtree defaults for unified text fields.
const

Properties

autovalidateMode AutovalidateMode?
When UnifiedBaseTextField.validator runs for UI feedback (null = always).
final
backgroundColor Color?
Editing-area background.
final
borderRadius BorderRadius?
Field box corner radius.
final
borderSide BorderSide?
Field box border.
final
contentPadding EdgeInsetsGeometry?
Inner padding of the editing area.
final
floatingLabelStyle UnifiedInputLabelModeStyle?
Label style/padding when UnifiedFieldLabelMode.floatingLabel is active.
final
hashCode int
The hash code for this object.
no setterinherited
headerBackgroundColor Color?
Label column background when the label is in a row.
final
height double?
Minimum inner row height.
final
labelInColumnStyle UnifiedInputLabelModeStyle?
Label style/padding when UnifiedFieldLabelMode.labelInColumn is active.
final
labelInRow bool?
Legacy row label flag; ignored when labelMode is set on these defaults.
final
labelInRowStyle UnifiedInputLabelModeStyle?
Label style/padding when UnifiedFieldLabelMode.labelInRow is active.
final
labelMode UnifiedFieldLabelMode?
Default label placement for fields that do not set UnifiedBaseTextField.labelMode.
final
mustResolveTextDirectionByInput bool?
Infer TextDirection from the first typed character (RTL scripts).
final
placeholderStyle TextStyle?
Default placeholder / hint TextStyle for UnifiedBaseTextField.
final
resetTextWhenLocked bool?
Reset text to UnifiedBaseTextField.initialValue when UnifiedBaseTextField.locked becomes true.
final
rowLabelRatio List<int>?
Flex ratio for label vs body in UnifiedFieldLabelMode.labelInRow.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectTextOnFocus bool?
When true, focusing a non-empty editable field selects all text so the next keystroke replaces the value.
final
showClearButton bool?
Whether to show a clear (×) suffix when the field has text.
final
showError bool?
Whether to show the inline error strip.
final
textStyle TextStyle?
Default value TextStyle for field text (applied when decoration / widget style omit fieldStyle).
final
textStylePersian TextStyle?
Value TextStyle when Persian digits are active; falls back to textStyle.
final

Methods

merge(UnifiedInputFieldDefaults? other) UnifiedInputFieldDefaults
Merges other on top of this; non-null fields from other win.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDecoration() UnifiedInputDecoration
Maps layout fields into UnifiedInputDecoration for palette merge.
toString() String
A string representation of this object.
inherited

Operators

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