TextFieldStyler class
////////////////////////////////TextFieldStyler Model///////////////////////////////
TextFieldStyler allows you to design the exact style you want for your textfield by using its properties. It must not be null
Constructors
- TextFieldStyler({bool textFieldFilled = false, String helperText = 'Enter tags', TextStyle? helperStyle, int? maxLength, TextStyle? textStyle, TextInputType? textInputType, Color? cursorColor, String hintText = 'Got tags?', TextStyle? hintStyle, EdgeInsets? contentPadding, Color? textFieldFilledColor, bool isDense = true, bool readOnly = false, bool textFieldEnabled = true, Icon? icon, InputBorder? textFieldBorder = const OutlineInputBorder(), InputBorder? textFieldFocusedBorder, InputBorder? textFieldDisabledBorder, InputBorder? textFieldEnabledBorder})
Properties
- contentPadding → EdgeInsets?
-
The padding for the input decoration's container. Adjust this to using EdgeInsets if you make textFieldBorder
null
or borderless to have the right customized stylefinal - cursorColor → Color?
-
The color of the cursor blinking
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperStyle → TextStyle?
-
Style helperText
final
- helperText → String
-
Text that provides context about the input
child
's value, such as how the value will be used.final - hintStyle → TextStyle?
-
Styles hint text
final
- hintText → String
-
Text that suggests what sort of input the field accepts.
final
- icon → Icon?
-
The icon that displays side of the text field
final
- isDense → bool
-
Whether the input
child
is part of a dense form (i.e., uses less vertical space).final - maxLength → int?
-
Add max length for the tags
final
- readOnly → bool
-
Add read only to the text field
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textFieldBorder → InputBorder?
-
final
- textFieldDisabledBorder → InputBorder?
-
final
- textFieldEnabled → bool
-
Enable or disable the textfield
final
- textFieldEnabledBorder → InputBorder?
-
final
- textFieldFilled → bool
-
textFieldFilled If true the decoration's container is filled with textFieldFilledColor.
final
- textFieldFilledColor → Color?
-
The color of the decoration inside the textfield
final
- textFieldFocusedBorder → InputBorder?
-
final
- textInputType → TextInputType?
-
Add keyboard type
final
- textStyle → TextStyle?
-
The text style of the text input
final
Methods
-
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.
inherited