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. MaxLengthEnforcement? maxLengthEnforcement,
  8. int? maxLength,
  9. int? maxLines = 1,
  10. int? minLines,
  11. TextAlignVertical? textAlignVertical,
  12. bool autocorrect = true,
  13. List<TextInputFormatter>? inputFormatters,
  14. bool autofocus = false,
  15. TextInputType keyboardType = TextInputType.text,
  16. bool enabled = true,
  17. bool enableSuggestions = true,
  18. TextAlign textAlign = TextAlign.start,
  19. FocusNode? focusNode,
  20. Color? cursorColor,
  21. Radius? cursorRadius,
  22. TextInputAction? textInputAction,
  23. TextCapitalization textCapitalization = TextCapitalization.none,
  24. double cursorWidth = 2.0,
  25. Brightness? keyboardAppearance,
  26. VoidCallback? onEditingComplete,
  27. GestureTapCallback? onTap,
  28. TextDirection? textDirection,
  29. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  30. bool enableInteractiveSelection = true,
})

Creates a TextFieldConfiguration

Implementation

const TextFieldConfiguration({
  this.decoration: const InputDecoration(),
  this.style,
  this.controller,
  this.onChanged,
  this.onSubmitted,
  this.obscureText: 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.textDirection,
  this.scrollPadding: const EdgeInsets.all(20.0),
  this.enableInteractiveSelection: true,
});