FPCGreyGradientFormField constructor

const FPCGreyGradientFormField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. Gradient? internalIconGradient,
  5. double? internalIconHeight,
  6. double? height,
  7. BorderRadius? borderRadius,
  8. double? borderWidth,
  9. EdgeInsets? padding,
  10. EdgeInsets? errorPadding,
  11. TextStyle? textStyle,
  12. required String labelText,
  13. Color? labelColor,
  14. TextStyle? labelStyle,
  15. String? prefixText,
  16. TextStyle? prefixStyle,
  17. String? hintText,
  18. TextStyle? hintStyle,
  19. TextStyle? errorStyle,
  20. TextInputType textInputType = TextInputType.text,
  21. TextCapitalization textCapitalization = TextCapitalization.none,
  22. TextInputAction textInputAction = TextInputAction.done,
  23. TextAlign textAlign = TextAlign.start,
  24. bool isAutofocus = false,
  25. bool? isShowCursor,
  26. String obscuringCharacter = "•",
  27. bool isObscuringText = false,
  28. bool isAutocorrect = false,
  29. SmartDashesType? smartDashesType,
  30. SmartQuotesType? smartQuotesType,
  31. bool isSuggestions = false,
  32. MaxLengthEnforcement? maxLengthEnforcement,
  33. int maxLines = 1,
  34. int maxLength = 128,
  35. void onChanged(
    1. String
    )?,
  36. void onTap()?,
  37. void onEditingComplete()?,
  38. void onFieldSubmitted(
    1. String
    )?,
  39. String? autoValidator(
    1. String
    )?,
  40. String? validator(
    1. String
    )?,
  41. List<TextInputFormatter>? inputFormatters,
  42. Brightness? keyboardAppearance,
  43. bool? enableInteractiveSelection,
  44. TextSelectionControls? selectionControls,
  45. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  46. Iterable<String>? autofillHints,
  47. bool enableIMEPersonalizedLearning = true,
  48. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  49. Widget? prefix,
  50. IconData? prefixIcon,
  51. IconData? postfixIcon,
  52. Widget? postfix,
  53. Widget? bottom,
  54. bool isRequired = false,
  55. bool isDisabled = false,
  56. Color? disabledColor,
  57. String? restorationId,
})

Implementation

const FPCGreyGradientFormField({
  super.key,
  this.controller,
  this.focusNode,
  //
  this.internalIconGradient,
  this.internalIconHeight,
  this.height,
  this.borderRadius,
  this.borderWidth,
  this.padding,
  this.errorPadding,
  //
  this.textStyle,
  //
  required this.labelText,
  this.labelColor,
  this.labelStyle,
  //
  this.prefixText,
  this.prefixStyle,
  //
  this.hintText,
  this.hintStyle,
  //
  this.errorStyle,
  //
  this.textInputType = TextInputType.text,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction = TextInputAction.done,
  //
  this.textAlign = TextAlign.start,
  this.isAutofocus = false,
  this.isShowCursor,
  //
  this.obscuringCharacter = "•",
  this.isObscuringText = false,
  //
  this.isAutocorrect = false,
  this.smartDashesType,
  this.smartQuotesType,
  this.isSuggestions = false,
  this.maxLengthEnforcement,
  //
  this.maxLines = 1,
  this.maxLength = 128,
  //
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  //
  this.autoValidator,
  this.validator,
  this.inputFormatters,
  //
  this.keyboardAppearance,
  this.enableInteractiveSelection,
  this.selectionControls,
  this.buildCounter,
  this.autofillHints,
  //
  this.enableIMEPersonalizedLearning = true,
  this.contextMenuBuilder,
  //
  this.prefix,
  this.prefixIcon,
  this.postfixIcon,
  this.postfix,
  this.bottom,
  this.isRequired = false,
  this.isDisabled = false,
  this.disabledColor,
  this.restorationId,
});