WalkTextForm constructor

WalkTextForm({
  1. bool cheak = false,
  2. EdgeInsetsGeometry? paddingText,
  3. Key? key,
  4. double? height,
  5. double? width,
  6. Widget? child,
  7. Duration? duration,
  8. BorderRadius? borderRadius,
  9. List<double>? steps,
  10. List<Color>? colors,
  11. double? thicken,
  12. Curve? curve,
  13. double? angle,
  14. bool? reverse,
  15. TileMode? tileMode,
  16. Alignment? alignment,
  17. InputDecoration? decoration,
  18. required TextEditingController? controller,
  19. TextInputType? keyboardType,
  20. TextCapitalization? textCapitalization,
  21. TextInputAction? textInputAction,
  22. TextStyle? style,
  23. StrutStyle? strutStyle,
  24. TextAlign? textAlign,
  25. TextAlignVertical? textAlignVertical,
  26. bool? autofocus = false,
  27. bool? readOnly = false,
  28. bool? showCursor,
  29. int? maxLength,
  30. bool? enableInteractiveSelection = true,
  31. GestureTapCallback? onTap,
  32. FormFieldValidator<String>? validator,
  33. FormFieldSetter<String>? onSaved,
  34. ValueChanged<String>? onChanged,
  35. ValueChanged<String>? onFieldSubmitted,
  36. bool? enabled,
  37. ScrollPhysics? scrollPhysics,
  38. ScrollController? scrollController,
  39. required FocusNode? focusNode,
  40. bool? autovalidate = false,
  41. EdgeInsets? scrollPadding = const EdgeInsets.all(20.0),
  42. bool? enableSuggestions = true,
  43. bool? autocorrect = true,
  44. SmartDashesType? smartDashesType,
  45. SmartQuotesType? smartQuotesType,
  46. bool? enableSuggestionsOnUserInteraction = true,
  47. void onEditingComplete()?,
  48. InputCounterWidgetBuilder? buildCounter,
  49. Iterable<String>? autofillHints,
  50. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  51. Color? cursorColor,
  52. double? cursorHeight,
  53. Radius? cursorRadius,
  54. double cursorWidth = 2.0,
  55. bool enableIMEPersonalizedLearning = true,
  56. TextMagnifierConfiguration? magnifierConfiguration,
  57. MaxLengthEnforcement? maxLengthEnforcement,
  58. int? maxLines = 1,
  59. int? minLines,
  60. String? restorationId,
  61. bool expands = false,
  62. String? initialValue,
  63. List<TextInputFormatter>? inputFormatters,
  64. Brightness? keyboardAppearance,
  65. MouseCursor? mouseCursor,
  66. bool obscureText = false,
  67. String obscuringCharacter = '•',
  68. void onTapOutside(
    1. PointerDownEvent
    )?,
  69. TextSelectionControls? selectionControls,
  70. Mode? mode,
  71. SpellCheckConfiguration? spellCheckConfiguration,
  72. TextDirection? textDirection,
})

Implementation

WalkTextForm({
  this.cheak = false,
  this.paddingText,
  super.key,
  this.height,
  this.width,
  this.child,
  this.duration,
  this.borderRadius,
  this.steps,
  this.colors,
  this.thicken,
  this.curve,
  this.angle,
  this.reverse,
  this.tileMode,
  this.alignment,
  this.decoration,
  required this.controller,
  this.keyboardType,
  this.textCapitalization,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.maxLength,
  this.enableInteractiveSelection = true,
  this.onTap,
  FormFieldValidator<String>? validator,
  this.onSaved,
  this.onChanged,
  this.onFieldSubmitted,
  this.enabled,
  this.scrollPhysics,
  this.scrollController,
  required this.focusNode,
  this.autovalidate = false,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableSuggestions = true,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestionsOnUserInteraction = true,
  this.onEditingComplete,
  this.buildCounter,
  this.autofillHints,
  this.contextMenuBuilder,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2.0,
  this.enableIMEPersonalizedLearning = true,
  this.magnifierConfiguration,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.restorationId,
  this.expands = false,
  this.initialValue,
  List<TextInputFormatter>? inputFormatters,
  this.keyboardAppearance,
  this.mouseCursor,
  this.obscureText = false,
  this.obscuringCharacter = '•',
  this.onTapOutside,
  this.selectionControls,
  Mode? mode,
  this.spellCheckConfiguration,
  this.textDirection,
})  : mode = mode ??
          Mode(
            border: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                Colors.blue,
                Colors.cyan.shade100,
                Colors.lightBlue,
              ],
            ),
            disabledBorder: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                Colors.black38,
              ],
            ),
            enabledBorder: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                Colors.greenAccent,
                Colors.green,
                Colors.lightGreenAccent.shade400
              ],
            ),
            errorBorder: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                Colors.pink.shade400,
                Colors.pink.shade200,
                Colors.pink.shade300
              ],
            ),
            focusedBorder: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                Colors.greenAccent,
                Colors.green,
                Colors.lightGreenAccent.shade400
              ],
            ),
            focusedErrorBorder: Models(
              angle: 360,
              borderRadius: BorderRadius.circular(12),
              colors: [
                const Color.fromARGB(255, 255, 17, 0),
                Colors.pinkAccent.shade100,
                Colors.red
              ],
            ),
          ),
      validator = validator ?? ((value) => null),
      inputFormatters =
          inputFormatters ?? [LengthLimitingTextInputFormatter(maxLength)];