FPCBasicGradientFormField constructor
const
FPCBasicGradientFormField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- required Gradient unfocusedBackgroundGradient,
- required Gradient focusedBackgroundGradient,
- required Gradient focusedGradient,
- Gradient? internalIconGradient,
- double? internalIconHeight,
- double? height,
- BorderRadius? borderRadius,
- double? borderWidth,
- EdgeInsets? padding,
- EdgeInsets? errorPadding,
- TextStyle? textStyle,
- required String labelText,
- Color? labelColor,
- TextStyle? labelStyle,
- String? prefixText,
- TextStyle? prefixStyle,
- String? hintText,
- TextStyle? hintStyle,
- TextStyle? errorStyle,
- TextInputType textInputType = TextInputType.text,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction textInputAction = TextInputAction.done,
- TextAlign textAlign = TextAlign.start,
- bool isAutofocus = false,
- bool? isShowCursor,
- String obscuringCharacter = "•",
- bool isObscuringText = false,
- bool isAutocorrect = false,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool isSuggestions = false,
- MaxLengthEnforcement? maxLengthEnforcement,
- int maxLines = 1,
- int maxLength = 128,
- void onChanged()?,
- void onTap()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- String? autoValidator()?,
- String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- Widget? buildCounter(
- BuildContext, {
- required int currentLength,
- required bool isFocused,
- required int? maxLength,
- Iterable<
String> ? autofillHints, - bool enableIMEPersonalizedLearning = true,
- Widget contextMenuBuilder()?,
- Widget? prefix,
- IconData? prefixIcon,
- IconData? postfixIcon,
- Widget? postfix,
- Widget? bottom,
- bool isRequired = false,
- bool isDisabled = false,
- Color? disabledColor,
- 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,
});