WalkTextForm constructor
WalkTextForm({
- bool cheak = false,
- EdgeInsetsGeometry? paddingText,
- Key? key,
- double? height,
- double? width,
- Widget? child,
- Duration? duration,
- BorderRadius? borderRadius,
- List<
double> ? steps, - List<
Color> ? colors, - double? thicken,
- Curve? curve,
- double? angle,
- bool? reverse,
- TileMode? tileMode,
- Alignment? alignment,
- InputDecoration? decoration,
- required TextEditingController? controller,
- TextInputType? keyboardType,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- bool? autofocus = false,
- bool? readOnly = false,
- bool? showCursor,
- int? maxLength,
- bool? enableInteractiveSelection = true,
- GestureTapCallback? onTap,
- FormFieldValidator<
String> ? validator, - FormFieldSetter<
String> ? onSaved, - ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onFieldSubmitted, - bool? enabled,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- required FocusNode? focusNode,
- bool? autovalidate = false,
- EdgeInsets? scrollPadding = const EdgeInsets.all(20.0),
- bool? enableSuggestions = true,
- bool? autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? enableSuggestionsOnUserInteraction = true,
- void onEditingComplete()?,
- InputCounterWidgetBuilder? buildCounter,
- Iterable<
String> ? autofillHints, - Widget contextMenuBuilder()?,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- bool enableIMEPersonalizedLearning = true,
- TextMagnifierConfiguration? magnifierConfiguration,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLines = 1,
- int? minLines,
- String? restorationId,
- bool expands = false,
- String? initialValue,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- MouseCursor? mouseCursor,
- bool obscureText = false,
- String obscuringCharacter = '•',
- void onTapOutside()?,
- TextSelectionControls? selectionControls,
- Mode? mode,
- SpellCheckConfiguration? spellCheckConfiguration,
- 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)];