GFTextFieldRounded constructor

const GFTextFieldRounded({
  1. Key? key,
  2. required Color editingbordercolor,
  3. required Color idlebordercolor,
  4. required double borderwidth,
  5. required double cornerradius,
  6. required String hintText,
  7. Widget? iconPrefix,
  8. Color? backgroundcolor,
  9. Color normalbordercolor = Colors.grey,
  10. Color focusedbordercolor = Colors.green,
  11. Color errorbordercolor = Colors.red,
  12. Color disabledbordercolor = Colors.black,
  13. double paddingvertical = 3,
  14. double paddinghorizontal = 4,
  15. double marginvertical = 3,
  16. double marginhorizontal = 4,
  17. TextEditingController? controller,
  18. String initialValue = '',
  19. FocusNode? focusNode,
  20. TextInputType? keyboardType = TextInputType.text,
  21. TextCapitalization textCapitalization = TextCapitalization.none,
  22. TextInputAction? textInputAction,
  23. TextStyle? style = const TextStyle(),
  24. StrutStyle? strutStyle = const StrutStyle(),
  25. TextDirection? textDirection = TextDirection.ltr,
  26. TextAlign? textAlign = TextAlign.start,
  27. TextAlignVertical? textAlignVertical = TextAlignVertical.center,
  28. bool autofocus = false,
  29. bool? readOnly = false,
  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 = true,
  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 GFTextFieldRounded(
    {Key? key,
    required this.editingbordercolor,
    required this.idlebordercolor,
    required this.borderwidth,
    required this.cornerradius,
    required this.hintText,
    this.iconPrefix,
    this.backgroundcolor,
    this.normalbordercolor = Colors.grey,
    this.focusedbordercolor = Colors.green,
    this.errorbordercolor = Colors.red,
    this.disabledbordercolor = Colors.black,
    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 = true,
    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);