PlainTextField constructor

const PlainTextField({
  1. Key? key,
  2. required String initialValue,
  3. required void onChange(
    1. String
    ),
  4. required VoidCallback submit,
  5. required bool enabled,
  6. required bool progress,
  7. required bool error,
  8. required PlainTextFieldStyles style,
  9. String labelText = '',
  10. String hintText = '',
  11. String leadingText = '',
  12. String errorMessage = '',
  13. int length = 0,
  14. TextInputType textInputType = TextInputType.phone,
  15. TextInputAction imeAction = TextInputAction.send,
  16. bool collapsed = false,
  17. bool autofocus = true,
  18. double? cursorHeight,
  19. List<String>? autofillHints,
  20. bool showErrorMessage = true,
  21. bool showSubmitButton = true,
  22. bool obscureText = false,
  23. 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,
});