TextFieldConfiguration constructor
const
TextFieldConfiguration({
- InputDecoration decoration = const InputDecoration(),
- TextStyle? style,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool obscureText = false,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLength,
- int? maxLines = 1,
- int? minLines,
- TextAlignVertical? textAlignVertical,
- bool autocorrect = true,
- List<
TextInputFormatter> ? inputFormatters, - bool autofocus = false,
- TextInputType keyboardType = TextInputType.text,
- bool enabled = true,
- bool enableSuggestions = true,
- TextAlign textAlign = TextAlign.start,
- FocusNode? focusNode,
- Color? cursorColor,
- Radius? cursorRadius,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- double cursorWidth = 2.0,
- Brightness? keyboardAppearance,
- VoidCallback? onEditingComplete,
- GestureTapCallback? onTap,
- TextDirection? textDirection,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- 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,
});