FancyFormField constructor

const FancyFormField({
  1. Key? key,
  2. required FancyKey fancyKey,
  3. AutovalidateMode? autovalidateMode,
  4. TextEditingController? controller,
  5. bool? enabled,
  6. String? forceErrorText,
  7. String? initialValue,
  8. ValueChanged<String>? onChanged,
  9. FormFieldSetter<String>? onSaved,
  10. String? restorationId,
  11. FormFieldValidator<String>? validator,
  12. FocusNode? focusNode,
  13. InputDecoration? decoration,
  14. TextInputType? keyboardType,
  15. TextCapitalization textCapitalization = TextCapitalization.none,
  16. TextInputAction? textInputAction,
  17. TextStyle? style,
  18. StrutStyle? strutStyle,
  19. TextDirection? textDirection,
  20. TextAlign textAlign = TextAlign.start,
  21. TextAlignVertical? textAlignVertical,
  22. bool autofocus = false,
  23. bool readOnly = false,
  24. bool? showCursor,
  25. String obscuringCharacter = '•',
  26. bool obscureText = false,
  27. bool autocorrect = true,
  28. List<TextInputFormatter>? inputFormatters,
  29. bool enableSuggestions = true,
  30. int? maxLines = 1,
  31. int? minLines,
  32. bool expands = false,
  33. int? maxLength,
  34. GestureTapCallback? onTap,
  35. bool onTapAlwaysCalled = false,
  36. TapRegionCallback? onTapOutside,
  37. VoidCallback? onEditingComplete,
  38. ValueChanged<String>? onFieldSubmitted,
  39. ScrollPhysics? scrollPhysics,
  40. ScrollController? scrollController,
  41. double cursorWidth = 2.0,
  42. double? cursorHeight,
  43. Radius? cursorRadius,
  44. Color? cursorColor,
  45. Color? cursorErrorColor,
  46. Brightness? keyboardAppearance,
  47. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  48. bool enableIMEPersonalizedLearning = true,
  49. bool? enableInteractiveSelection,
  50. 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,
});