CupertinoTextFieldConfiguration constructor
const
CupertinoTextFieldConfiguration({
- TextEditingController? controller,
- FocusNode? focusNode,
- BoxDecoration decoration = _kDefaultRoundedBorderDecoration,
- EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
- String? placeholder,
- TextStyle? placeholderStyle,
- Widget? prefix,
- OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always,
- Widget? suffix,
- OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always,
- OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- bool autofocus = false,
- bool obscureText = false,
- bool autocorrect = true,
- int maxLines = 1,
- int? minLines,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChanged, - VoidCallback? onEditingComplete,
- GestureTapCallback? onTap,
- ValueChanged<
String> ? onSubmitted, - List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- bool enableSuggestions = true,
- double cursorWidth = 2.0,
- Radius cursorRadius = const Radius.circular(2.0),
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool enableInteractiveSelection = true,
- List<
String> ? autofillHints,
Creates a CupertinoTextFieldConfiguration
Implementation
const CupertinoTextFieldConfiguration({
this.controller,
this.focusNode,
this.decoration = _kDefaultRoundedBorderDecoration,
this.padding = const EdgeInsets.all(6.0),
this.placeholder,
this.placeholderStyle,
this.prefix,
this.prefixMode = OverlayVisibilityMode.always,
this.suffix,
this.suffixMode = OverlayVisibilityMode.always,
this.clearButtonMode = OverlayVisibilityMode.never,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.style,
this.textAlign = TextAlign.start,
this.autofocus = false,
this.obscureText = false,
this.autocorrect = true,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.maxLengthEnforcement,
this.onChanged,
this.onEditingComplete,
this.onTap,
this.onSubmitted,
this.inputFormatters,
this.enabled = true,
this.enableSuggestions = true,
this.cursorWidth = 2.0,
this.cursorRadius = const Radius.circular(2.0),
this.cursorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.enableInteractiveSelection = true,
this.autofillHints,
});