TextFieldConfiguration constructor

const TextFieldConfiguration({
  1. InputDecoration decoration = const InputDecoration(),
  2. TextStyle? style,
  3. TextEditingController? controller,
  4. ValueChanged<String>? onChanged,
  5. ValueChanged<String>? onSubmitted,
  6. bool obscureText = false,
  7. bool expands = false,
  8. MaxLengthEnforcement? maxLengthEnforcement,
  9. int? maxLength,
  10. int? maxLines = 1,
  11. int? minLines,
  12. TextAlignVertical? textAlignVertical,
  13. bool autocorrect = true,
  14. List<TextInputFormatter>? inputFormatters,
  15. bool autofocus = false,
  16. TextInputType keyboardType = TextInputType.text,
  17. bool enabled = true,
  18. bool enableSuggestions = true,
  19. TextAlign textAlign = TextAlign.start,
  20. FocusNode? focusNode,
  21. Color? cursorColor,
  22. Radius? cursorRadius,
  23. TextInputAction? textInputAction,
  24. TextCapitalization textCapitalization = TextCapitalization.none,
  25. double cursorWidth = 2.0,
  26. Brightness? keyboardAppearance,
  27. VoidCallback? onEditingComplete,
  28. GestureTapCallback? onTap,
  29. TapRegionCallback? onTapOutside,
  30. TextDirection? textDirection,
  31. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  32. bool enableInteractiveSelection = true,
  33. List<String>? autofillHints,
})

Creates a TextFieldConfiguration

Implementation

const TextFieldConfiguration({
  this.decoration = const InputDecoration(),
  this.style,
  this.controller,
  this.onChanged,
  this.onSubmitted,
  this.obscureText = false,
  this.expands = false,
  this.maxLengthEnforcement,
  this.maxLength,
  this.maxLines = 1,
  this.minLines,
  this.textAlignVertical,
  this.autocorrect = true,
  this.inputFormatters,
  this.autofocus = false,
  this.keyboardType = TextInputType.text,
  this.enabled = true,
  this.enableSuggestions = true,
  this.textAlign = TextAlign.start,
  this.focusNode,
  this.cursorColor,
  this.cursorRadius,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.cursorWidth = 2.0,
  this.keyboardAppearance,
  this.onEditingComplete,
  this.onTap,
  this.onTapOutside,
  this.textDirection,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection = true,
  this.autofillHints,
});