FancyFormField constructor
const
FancyFormField({
- Key? key,
- required FancyKey fancyKey,
- AutovalidateMode? autovalidateMode,
- TextEditingController? controller,
- bool? enabled,
- String? forceErrorText,
- String? initialValue,
- ValueChanged<
String> ? onChanged, - FormFieldSetter<
String> ? onSaved, - String? restorationId,
- FormFieldValidator<
String> ? validator, - FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool readOnly = false,
- bool? showCursor,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- List<
TextInputFormatter> ? inputFormatters, - bool enableSuggestions = true,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- GestureTapCallback? onTap,
- bool onTapAlwaysCalled = false,
- TapRegionCallback? onTapOutside,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Color? cursorErrorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool enableIMEPersonalizedLearning = true,
- bool? enableInteractiveSelection,
- Clip clipBehavior = Clip.hardEdge,
Implementation
const FancyFormField({
super.key,
required this.fancyKey,
this.autovalidateMode,
this.controller,
this.enabled,
this.forceErrorText,
this.initialValue,
this.onChanged,
this.onSaved,
this.restorationId,
this.validator,
this.focusNode,
this.decoration,
this.keyboardType,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.autofocus = false,
this.readOnly = false,
this.showCursor,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
this.inputFormatters,
this.enableSuggestions = true,
this.maxLines = 1,
this.minLines,
this.expands = false,
this.maxLength,
this.onTap,
this.onTapAlwaysCalled = false,
this.onTapOutside,
this.onEditingComplete,
this.onFieldSubmitted,
this.scrollPhysics,
this.scrollController,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.cursorErrorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.enableIMEPersonalizedLearning = true,
this.enableInteractiveSelection,
this.clipBehavior = Clip.hardEdge,
});