CupertinoTextFieldConfiguration constructor

const CupertinoTextFieldConfiguration({
  1. TextEditingController? controller,
  2. FocusNode? focusNode,
  3. BoxDecoration decoration = _kDefaultRoundedBorderDecoration,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
  5. String? placeholder,
  6. Widget? prefix,
  7. OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always,
  8. Widget? suffix,
  9. OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always,
  10. OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never,
  11. TextInputType? keyboardType,
  12. TextInputAction? textInputAction,
  13. TextCapitalization textCapitalization = TextCapitalization.none,
  14. TextStyle? style,
  15. TextAlign textAlign = TextAlign.start,
  16. bool autofocus = false,
  17. bool obscureText = false,
  18. bool autocorrect = true,
  19. int maxLines = 1,
  20. int? minLines,
  21. int? maxLength,
  22. MaxLengthEnforcement? maxLengthEnforcement,
  23. ValueChanged<String>? onChanged,
  24. VoidCallback? onEditingComplete,
  25. GestureTapCallback? onTap,
  26. ValueChanged<String>? onSubmitted,
  27. List<TextInputFormatter>? inputFormatters,
  28. bool enabled = true,
  29. bool enableSuggestions = true,
  30. double cursorWidth = 2.0,
  31. Radius cursorRadius = const Radius.circular(2.0),
  32. Color? cursorColor,
  33. Brightness? keyboardAppearance,
  34. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  35. bool enableInteractiveSelection = true,
})

Creates a CupertinoTextFieldConfiguration

Implementation

const CupertinoTextFieldConfiguration({
  this.controller,
  this.focusNode,
  this.decoration = _kDefaultRoundedBorderDecoration,
  this.padding = const EdgeInsets.all(6.0),
  this.placeholder,
  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,
});