FTextFieldStyle class
The text field style.
- Inheritance
-
- Object
- FFormFieldStyle
- FLabelStyle
- FTextFieldStyle
- Implemented types
- Available extensions
Constructors
-
FTextFieldStyle.new({required Brightness keyboardAppearance, required FButtonStyle clearButtonStyle, 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: 14, vertical: 14), EdgeInsetsGeometry clearButtonPadding = 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
-
The child's padding.
finalinherited
- clearButtonPadding → EdgeInsetsGeometry
-
The padding surrounding the clear button. Defaults to
EdgeInsetsDirectional.only(end: 2)
.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
-
The description's padding.
finalinherited
-
descriptionTextStyle
→ FWidgetStateMap<
TextStyle> -
The description's text style.
finalinherited
- errorPadding → EdgeInsetsGeometry
-
The error's padding.
finalinherited
- errorTextStyle → TextStyle
-
The error's text style.
finalinherited
- 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
-
The label's padding.
finalinherited
-
labelTextStyle
→ FWidgetStateMap<
TextStyle> -
The label's text style.
finalinherited
- 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
-
copyWith(
{Brightness? keyboardAppearance, Color? cursorColor, Color? fillColor, bool? filled, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? clearButtonPadding, EdgeInsets? scrollPadding, FButtonStyle? clearButtonStyle, 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 -
Returns a copy of this FTextFieldStyle with the given properties replaced.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
transform(
T function(T)) → T -
Available on T, provided by the FTransformables extension
Transform thisT
using the givenfunction
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited