SparkTextField constructor
const
SparkTextField({
- Key? key,
- required FormGroupItem manage,
- String? initialValue,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlignVertical? textAlignVertical,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? minLines,
- int? maxLength,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- TextSelectionControls? selectionControls,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autoFillHints, - AutovalidateMode? autoValidateMode,
- ScrollController? scrollController,
- TextCapitalization? textCapitalization,
- bool? autoFocus,
- bool? readOnly,
- String? obscuringCharacter,
- bool? obscureText,
- bool? autoCorrect,
- bool? enableSuggestions,
- int? maxLines,
- bool? expands,
- double? cursorWidth,
- EdgeInsets? scrollPadding,
- bool? enableIMEPersonalizedLearning,
- bool? enableInteractiveSelection,
- double? width,
- Widget? suffix,
- Widget? prefix,
- bool? clearable,
- Widget? clearableWidget,
- bool? keepClearableVisible,
- Size? clearableSize,
- EdgeInsets? contentPadding,
- BoxConstraints? constraints,
- String? hitText,
- TextStyle? hitTextStyle,
- String? counterText,
- bool? showCounter,
- TextStyle? counterStyle,
- TextAlign? textAlign,
- bool autoSelectionPosition = true,
- Function? onFocus,
- bool enabled = true,
Implementation
const SparkTextField({
Key? key,
required FormGroupItem manage,
this.initialValue,
this.keyboardType,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlignVertical,
this.toolbarOptions,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.maxLengthEnforcement,
this.minLines,
this.maxLength,
this.onChanged,
this.onTap,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.validator,
this.inputFormatters,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autoFillHints,
this.autoValidateMode,
this.scrollController,
this.textCapitalization,
this.autoFocus,
this.readOnly,
this.obscuringCharacter,
this.obscureText,
this.autoCorrect,
this.enableSuggestions,
this.maxLines,
this.expands,
this.cursorWidth,
this.scrollPadding,
this.enableIMEPersonalizedLearning,
this.enableInteractiveSelection,
this.width,
this.suffix,
this.prefix,
this.clearable,
this.clearableWidget,
this.keepClearableVisible,
this.clearableSize,
this.contentPadding,
this.constraints,
this.hitText,
this.hitTextStyle,
this.counterText,
this.showCounter,
this.counterStyle,
this.textAlign,
this.autoSelectionPosition = true,
this.onFocus,
bool enabled = true,
}) : super(key: key, manage: manage, enabled: enabled);