GFTextFieldPill constructor

const GFTextFieldPill({
  1. Key? key,
  2. required Color editingbordercolor,
  3. required Color idlebordercolor,
  4. required double borderwidth,
  5. required String hintText,
  6. Color? backgroundcolor,
  7. Color normalbordercolor = Colors.grey,
  8. Color focusedbordercolor = Colors.green,
  9. Color errorbordercolor = Colors.red,
  10. Color disabledbordercolor = Colors.black,
  11. Widget? iconPrefix,
  12. double paddingvertical = 3,
  13. double paddinghorizontal = 4,
  14. double marginvertical = 3,
  15. double marginhorizontal = 4,
  16. TextEditingController? controller,
  17. String initialValue = '',
  18. FocusNode? focusNode,
  19. TextInputType? keyboardType = TextInputType.text,
  20. TextCapitalization textCapitalization = TextCapitalization.none,
  21. TextInputAction? textInputAction,
  22. TextStyle? style = const TextStyle(),
  23. StrutStyle? strutStyle = const StrutStyle(),
  24. TextDirection? textDirection = TextDirection.ltr,
  25. TextAlign? textAlign = TextAlign.start,
  26. TextAlignVertical? textAlignVertical = TextAlignVertical.center,
  27. bool autofocus = false,
  28. bool? readOnly = false,
  29. ToolbarOptions? toolbarOptions = const ToolbarOptions(copy: true, cut: true, paste: true, selectAll: true),
  30. bool? showCursor,
  31. String obscuringCharacter = '.',
  32. bool obscureText = false,
  33. bool autocorrect = true,
  34. SmartDashesType? smartDashesType,
  35. SmartQuotesType? smartQuotesType,
  36. bool enableSuggestions = true,
  37. bool? autovalidate = true,
  38. MaxLengthEnforcement maxLengthEnforced = MaxLengthEnforcement.none,
  39. int? maxLines = 1,
  40. int? minLines = 1,
  41. bool expands = false,
  42. int? maxLength,
  43. ValueChanged<String>? onChanged,
  44. GestureTapCallback? onTap,
  45. VoidCallback? onEditingComplete,
  46. ValueChanged<String>? onFieldSubmitted,
  47. FormFieldSetter<String>? onSaved,
  48. FormFieldValidator<String>? validator,
  49. List<TextInputFormatter>? inputFormatters,
  50. bool enabled = true,
  51. double? cursorWidth = 2.0,
  52. double? cursorHeight,
  53. Radius? cursorRadius,
  54. Color? cursorColor,
  55. Color? color,
  56. Radius? borderradius,
  57. Brightness? keyboardAppearance,
  58. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  59. bool enableInteractiveSelection = true,
  60. InputCounterWidgetBuilder? buildCounter,
  61. ScrollPhysics? scrollPhysics,
  62. Iterable<String>? autofillHints,
  63. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
})

Implementation

const GFTextFieldPill({
  Key? key,
  required this.editingbordercolor,
  required this.idlebordercolor,
  required this.borderwidth,
  required this.hintText,
  this.backgroundcolor,
  this.normalbordercolor=Colors.grey,
  this.focusedbordercolor=Colors.green,
  this.errorbordercolor=Colors.red,
  this.disabledbordercolor=Colors.black,
  this.iconPrefix,
  this.paddingvertical=3,
  this.paddinghorizontal=4,
  this.marginvertical=3,
  this.marginhorizontal=4,
  this.controller,
  this.initialValue='',
  this.focusNode,
  this.keyboardType=TextInputType.text,
  this.textCapitalization=TextCapitalization.none,
  this.textInputAction,
  this.style=const TextStyle(),
  this.strutStyle=const StrutStyle(),
  this.textDirection=TextDirection.ltr,
  this.textAlign=TextAlign.start,
  this.textAlignVertical=TextAlignVertical.center,
  this.autofocus=false,
  this.readOnly=false,
  this.toolbarOptions=const ToolbarOptions(copy: true,cut: true,paste: true,selectAll: true),
  this.showCursor,
  this.obscuringCharacter='.',
  this.obscureText=false,
  this.autocorrect=true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions=true,
  this.autovalidate=true,
  this.maxLengthEnforced=MaxLengthEnforcement.none,
  this.maxLines=1,
  this.minLines=1,
  this.expands=false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled=true,
  this.cursorWidth=2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.color,
  this.borderradius,
  this.keyboardAppearance,
  this.scrollPadding=const EdgeInsets.all(20),
  this.enableInteractiveSelection=true,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode=AutovalidateMode.disabled

}) :super(key: key);