StandardTextField constructor

const StandardTextField({
  1. Key? key,
  2. String? initialValue,
  3. FormFieldValidator<String>? validator,
  4. int? minLines,
  5. int? maxLines,
  6. int? maxLength,
  7. FocusNode? focusNode,
  8. TextInputAction? textInputAction,
  9. dynamic onEditingComplete()?,
  10. TextEditingController? controller,
  11. bool enabled = true,
  12. bool autofocus = false,
  13. String? labelText,
  14. required dynamic onChanged(
    1. String?
    ),
  15. GestureTapCallback? onTap,
  16. Iterable<String>? autofillHints = const [],
  17. InputDecoration? decoration,
  18. TextStyle? style,
  19. dynamic onFocusLost()?,
  20. TextInputType keyboardType = TextInputType.text,
  21. bool readOnly = false,
})

Implementation

const StandardTextField({
  super.key,
  this.initialValue,
  this.validator,
  this.minLines,
  this.maxLines,
  this.maxLength,
  this.focusNode,
  this.textInputAction,
  this.onEditingComplete,
  this.controller,
  this.enabled = true,
  this.autofocus = false,
  this.labelText,
  required this.onChanged,
  this.onTap,
  this.autofillHints = const [],
  this.decoration,
  this.style,
  this.onFocusLost,
  this.keyboardType = TextInputType.text,
  this.readOnly = false,
});