text static method
TFormField<String>
text(
- TFieldProp<
String> prop, - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TTextFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(String?)> ? rules, - int rows = 1,
Implementation
static TFormField<String> text(
TFieldProp<String> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TTextFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(String?)>? rules,
int rows = 1,
}) {
return TFormField<String>(
prop: prop,
builder: (onValueChanged) => TTextField(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
autoFocus: autoFocus,
readOnly: readOnly,
theme: theme,
focusNode: focusNode,
onTap: onTap,
textController: textController,
rules: rules,
rows: rows,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}