FTextFieldStyle class

The text field style.

Inheritance
Available extensions

Constructors

FTextFieldStyle({required Brightness keyboardAppearance, required FButtonStyle clearButtonStyle, required FButtonStyle obscureButtonStyle, required FWidgetStateMap<TextStyle> contentTextStyle, required FWidgetStateMap<TextStyle> hintTextStyle, required FWidgetStateMap<TextStyle> counterTextStyle, required FWidgetStateMap<InputBorder> border, required FWidgetStateMap<TextStyle> labelTextStyle, required FWidgetStateMap<TextStyle> descriptionTextStyle, required TextStyle errorTextStyle, Color cursorColor = CupertinoColors.activeBlue, Color? fillColor, bool filled = false, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 10), EdgeInsetsGeometry clearButtonPadding = const EdgeInsetsDirectional.only(end: 4), EdgeInsetsGeometry obscureButtonPadding = const EdgeInsetsDirectional.only(end: 4), EdgeInsets scrollPadding = const EdgeInsets.all(20), EdgeInsetsGeometry labelPadding = EdgeInsets.zero, EdgeInsetsGeometry descriptionPadding = EdgeInsets.zero, EdgeInsetsGeometry errorPadding = EdgeInsets.zero, EdgeInsetsGeometry childPadding = EdgeInsets.zero})
Creates a FTextFieldStyle.
FTextFieldStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
Creates a FTextFieldStyle that inherits its properties.
factory

Properties

border FWidgetStateMap<InputBorder>
The border.
final
childPadding EdgeInsetsGeometry
no setterinherited
clearButtonPadding EdgeInsetsGeometry
The padding surrounding the clear button. Defaults to EdgeInsetsDirectional.only(end: 4).
final
clearButtonStyle FButtonStyle
The clear button's style when FTextField.clearable is true.
final
contentPadding EdgeInsetsGeometry
The padding surrounding this text field's content.
final
contentTextStyle FWidgetStateMap<TextStyle>
The content's TextStyle.
final
counterTextStyle FWidgetStateMap<TextStyle>
The counter's TextStyle.
final
cursorColor Color
The color of the cursor. Defaults to CupertinoColors.activeBlue.
final
descriptionPadding EdgeInsetsGeometry
no setterinherited
descriptionTextStyle FWidgetStateMap<TextStyle>
no setterinherited
errorPadding EdgeInsetsGeometry
no setterinherited
errorTextStyle TextStyle
no setterinherited
fillColor Color?
The base fill color of the decoration's container colors.
final
filled bool
If true the decoration's container is filled with fillColor. Defaults to false.
final
hashCode int
The hash code for this object.
no setterinherited
hintTextStyle FWidgetStateMap<TextStyle>
The hint's TextStyle.
final
keyboardAppearance Brightness
The appearance of the keyboard. Defaults to FColors.brightness.
final
labelPadding EdgeInsetsGeometry
no setterinherited
labelTextStyle FWidgetStateMap<TextStyle>
no setterinherited
obscureButtonPadding EdgeInsetsGeometry
The padding surrounding the obscured text toggle. Defaults to EdgeInsetsDirectional.only(end: 4).
final
obscureButtonStyle FButtonStyle
The obscured text toggle's style when enabled in FTextField.password.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPadding EdgeInsets
Configures padding to edges surrounding a Scrollable when this text field scrolls into view.
final

Methods

call(Object? _) FTextFieldStyle
Returns itself.
inherited
copyWith({FWidgetStateMap<TextStyle>? labelTextStyle, FWidgetStateMap<TextStyle>? descriptionTextStyle, TextStyle? errorTextStyle}) FFormFieldStyle

Available on FFormFieldStyle, provided by the $FFormFieldStyleTransformations extension

Returns a copy of this FFormFieldStyle with the given properties replaced.
copyWith({EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? descriptionPadding, EdgeInsetsGeometry? errorPadding, EdgeInsetsGeometry? childPadding, FWidgetStateMap<TextStyle>? labelTextStyle, FWidgetStateMap<TextStyle>? descriptionTextStyle, TextStyle? errorTextStyle}) FLabelStyle

Available on FLabelStyle, provided by the $FLabelStyleTransformations extension

Returns a copy of this FLabelStyle with the given properties replaced.
copyWith({Brightness? keyboardAppearance, Color? cursorColor, Color? fillColor, bool? filled, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? clearButtonPadding, EdgeInsetsGeometry? obscureButtonPadding, EdgeInsets? scrollPadding, FButtonStyle clearButtonStyle(FButtonStyle style)?, FButtonStyle obscureButtonStyle(FButtonStyle style)?, FWidgetStateMap<TextStyle>? contentTextStyle, FWidgetStateMap<TextStyle>? hintTextStyle, FWidgetStateMap<TextStyle>? counterTextStyle, FWidgetStateMap<InputBorder>? border, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? descriptionPadding, EdgeInsetsGeometry? errorPadding, EdgeInsetsGeometry? childPadding, FWidgetStateMap<TextStyle>? labelTextStyle, FWidgetStateMap<TextStyle>? descriptionTextStyle, TextStyle? errorTextStyle}) FTextFieldStyle

Available on FTextFieldStyle, provided by the $FTextFieldStyleTransformations extension

Returns a copy of this FTextFieldStyle with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(FFormFieldStyle other, double t) FFormFieldStyle

Available on FFormFieldStyle, provided by the $FFormFieldStyleTransformations extension

Linearly interpolate between this and another FFormFieldStyle using the given factor t.
lerp(FLabelStyle other, double t) FLabelStyle

Available on FLabelStyle, provided by the $FLabelStyleTransformations extension

Linearly interpolate between this and another FLabelStyle using the given factor t.
lerp(FTextFieldStyle other, double t) FTextFieldStyle

Available on FTextFieldStyle, provided by the $FTextFieldStyleTransformations extension

Linearly interpolate between this and another FTextFieldStyle using the given factor t.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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