BASFInputField class
Constructors
BASFInputField ({TextEditingController ? controller , void onChanged (String )?, IconData ? prefixIcon , String ? hintText , String ? labelText = '' , String ? initialText = '' , String ? validation (String )?, bool ? initialValidation = true , bool ? disabled = false , bool ? withoutClear = false , bool ? obscureText = false , TextInputType ? inputType , EdgeInsets ? padding , Key ? key })
const
Properties
controller
→ TextEditingController ?
Controls the text being edited.
final
disabled
→ bool ?
This disables the interaction with the InputFiled changes its appearance.
final
hashCode
→ int
The hash code for this object.
no setter inherited
hintText
→ String ?
The hintText will be shown in the InputField if there is no input.
final
initialText
→ String ?
The initial text shown in the InputField.
final
initialValidation
→ bool ?
The initialValidation is to checks the initial value during creating the InputField.
final
inputType
→ TextInputType ?
Define the keyboard for this InputField.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
labelText
→ String ?
The label above the InputField.
final
obscureText
→ bool ?
This obscures the input.
final
onChanged
→ (void Function(String ) ?)
The onChanged returns the text inside the InputField anytime it's changed.
final
padding
→ EdgeInsets ?
The padding for the whole InputField.
final
prefixIcon
→ IconData ?
Adds a icon before the text in the InputField.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
validation
→ (String ? Function(String ) ?)
This triggers the color of the field and adds an error text right under the
InputField for the user if wanted.
This validation is triggered also during initialization by default.
You can change that with the initialValidation attribute.
final
withoutClear
→ bool ?
This enables you to don't show the clear button at the end of the InputField.
final
basf_flutter_components 0.0.1+3