FPCBasicGradientFormField constructor

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

Implementation

const FPCBasicGradientFormField({
  super.key,
  this.controller,
  this.focusNode,
  //
  required this.unfocusedBackgroundGradient,
  required this.focusedBackgroundGradient,
  required this.focusedGradient,
  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,
});