GFTextFieldRounded constructor
const
GFTextFieldRounded({
- Key? key,
- required Color editingbordercolor,
- required Color idlebordercolor,
- required double borderwidth,
- required double cornerradius,
- required String hintText,
- Widget? iconPrefix,
- Color? backgroundcolor,
- Color normalbordercolor = Colors.grey,
- Color focusedbordercolor = Colors.green,
- Color errorbordercolor = Colors.red,
- Color disabledbordercolor = Colors.black,
- double paddingvertical = 3,
- double paddinghorizontal = 4,
- double marginvertical = 3,
- double marginhorizontal = 4,
- TextEditingController? controller,
- String initialValue = '',
- FocusNode? focusNode,
- TextInputType? keyboardType = TextInputType.text,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? style = const TextStyle(),
- StrutStyle? strutStyle = const StrutStyle(),
- TextDirection? textDirection = TextDirection.ltr,
- TextAlign? textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical = TextAlignVertical.center,
- bool autofocus = false,
- bool? readOnly = false,
- bool? showCursor,
- String obscuringCharacter = '.',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- bool? autovalidate = true,
- MaxLengthEnforcement maxLengthEnforced = MaxLengthEnforcement.none,
- int? maxLines = 1,
- int? minLines = 1,
- bool expands = true,
- int? maxLength,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- double? cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Color? color,
- Radius? borderradius,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool enableInteractiveSelection = true,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - 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);