FdcEditorInputStyle class
Visual styling for text-like FDC editor inputs.
All properties are optional so partial styles can be merged over theme defaults or inherited editor theme data.
Constructors
- FdcEditorInputStyle({Color? fillColor, Color? focusedFillColor, Color? readOnlyFillColor, Color? disabledFillColor, Color? borderColor, Color? focusedBorderColor, Color? errorBorderColor, Color? disabledBorderColor, Color? readOnlyBorderColor, double? borderWidth, double? focusedBorderWidth, double? errorBorderWidth, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? contentPadding, TextStyle? textStyle, TextStyle? labelStyle, TextStyle? floatingLabelStyle, TextStyle? hintStyle, TextStyle? errorStyle, Color? cursorColor})
-
Creates a FdcEditorInputStyle.
const
Properties
- borderColor → Color?
-
Border color in the normal state.
final
- borderRadius → BorderRadiusGeometry?
-
Corner radius of the editor surface.
final
- borderWidth → double?
-
Border width in logical pixels for the normal state.
final
- contentPadding → EdgeInsetsGeometry?
-
Padding inside the editor input surface.
final
- cursorColor → Color?
-
Text cursor color.
final
- disabledBorderColor → Color?
-
Border color for disabled editors.
final
- disabledFillColor → Color?
-
Background fill color for disabled editors.
final
- errorBorderColor → Color?
-
Border color while the editor reports an error.
final
- errorBorderWidth → double?
-
Border width in logical pixels while reporting an error.
final
- errorStyle → TextStyle?
-
Text style for inline validation messages.
final
- fillColor → Color?
-
Background fill color for the editor surface.
final
- floatingLabelStyle → TextStyle?
-
Text style for floating input labels.
final
- focusedBorderColor → Color?
-
Border color while the editor has focus.
final
- focusedBorderWidth → double?
-
Border width in logical pixels while focused.
final
- focusedFillColor → Color?
-
Background fill color while the editor has focus.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hintStyle → TextStyle?
-
Text style for input hint text.
final
- labelStyle → TextStyle?
-
Text style for editor labels.
final
- readOnlyBorderColor → Color?
-
Border color for read-only editors.
final
- readOnlyFillColor → Color?
-
Background fill color for read-only editors.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
Text style for editor values.
final
Methods
-
copyWith(
{Color? fillColor, Color? focusedFillColor, Color? readOnlyFillColor, Color? disabledFillColor, Color? borderColor, Color? focusedBorderColor, Color? errorBorderColor, Color? disabledBorderColor, Color? readOnlyBorderColor, double? borderWidth, double? focusedBorderWidth, double? errorBorderWidth, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? contentPadding, TextStyle? textStyle, TextStyle? labelStyle, TextStyle? floatingLabelStyle, TextStyle? hintStyle, TextStyle? errorStyle, Color? cursorColor}) → FdcEditorInputStyle - Creates a copy with selected values replaced.
-
lerp(
FdcEditorInputStyle other, double t) → FdcEditorInputStyle -
Linearly interpolates this style toward
otherbyt. -
merge(
FdcEditorInputStyle? override) → FdcEditorInputStyle -
Merges non-null properties from
overrideover this style. -
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
Constants
- defaults → const FdcEditorInputStyle
- Fully resolved fallback style used as the base of style merging.