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. bool? showCursor,
  30. String obscuringCharacter = '.',
  31. bool obscureText = false,
  32. bool autocorrect = true,
  33. SmartDashesType? smartDashesType,
  34. SmartQuotesType? smartQuotesType,
  35. bool enableSuggestions = true,
  36. bool? autovalidate = true,
  37. MaxLengthEnforcement maxLengthEnforced = MaxLengthEnforcement.none,
  38. int? maxLines = 1,
  39. int? minLines = 1,
  40. bool expands = false,
  41. int? maxLength,
  42. ValueChanged<String>? onChanged,
  43. GestureTapCallback? onTap,
  44. VoidCallback? onEditingComplete,
  45. ValueChanged<String>? onFieldSubmitted,
  46. FormFieldSetter<String>? onSaved,
  47. FormFieldValidator<String>? validator,
  48. List<TextInputFormatter>? inputFormatters,
  49. bool enabled = true,
  50. double? cursorWidth = 2.0,
  51. double? cursorHeight,
  52. Radius? cursorRadius,
  53. Color? cursorColor,
  54. Color? color,
  55. Radius? borderradius,
  56. Brightness? keyboardAppearance,
  57. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  58. bool enableInteractiveSelection = true,
  59. InputCounterWidgetBuilder? buildCounter,
  60. ScrollPhysics? scrollPhysics,
  61. Iterable<String>? autofillHints,
  62. 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.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);