PlainTextField constructor
const
PlainTextField({
- Key? key,
- required String initialValue,
- required void onChange(),
- required VoidCallback submit,
- required bool enabled,
- required bool progress,
- required bool error,
- required PlainTextFieldStyles style,
- String labelText = '',
- String hintText = '',
- String leadingText = '',
- String errorMessage = '',
- int length = 0,
- TextInputType textInputType = TextInputType.phone,
- TextInputAction imeAction = TextInputAction.send,
- bool collapsed = false,
- bool autofocus = true,
- double? cursorHeight,
- List<
String> ? autofillHints, - bool showErrorMessage = true,
- bool showSubmitButton = true,
- bool obscureText = false,
- int? maxLength,
Implementation
const PlainTextField({
super.key,
required this.initialValue,
required this.onChange,
required this.submit,
required this.enabled,
required this.progress,
required this.error,
required this.style,
this.labelText = '',
this.hintText = '',
this.leadingText = '',
this.errorMessage = '',
this.length = 0,
this.textInputType = TextInputType.phone,
this.imeAction = TextInputAction.send,
this.collapsed = false,
this.autofocus = true,
this.cursorHeight,
this.autofillHints,
this.showErrorMessage = true,
this.showSubmitButton = true,
this.obscureText = false,
this.maxLength,
});