NikuTextFormField constructor
NikuTextFormField({
- Key? key,
- Widget? label,
- String? labelText,
- String? hintText,
- TextEditingController? controller,
- String? initialValue,
- FocusNode? focusNode,
- NikuInputDecoration? decoration,
- TextInputType? keyboardType,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- NikuTextStyle? style,
- NikuStrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- bool? autofocus,
- bool? readOnly,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- String? obscuringCharacter,
- bool? obscureText,
- bool? autocorrect,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? enableSuggestions,
- bool? autovalidate,
- bool? maxLengthEnforced,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLines,
- int? minLines,
- bool? expands,
- int? maxLength,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets? scrollPadding,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - ScrollController? scrollController,
- String? restorationId,
- AutovalidateMode? autovalidateMode,
- bool? enableIMEPersonalizedLearning,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
- SpellCheckConfiguration? spellCheckConfiguration,
- bool adaptive = false,
- bool cupertino = false,
Implementation
NikuTextFormField({
Key? key,
Widget? label,
String? labelText,
String? hintText,
this.controller,
this.initialValue,
this.focusNode,
this.decoration,
this.keyboardType,
this.textCapitalization,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlign,
this.textAlignVertical,
this.autofocus,
this.readOnly,
this.toolbarOptions,
this.showCursor,
this.obscuringCharacter,
this.obscureText,
this.autocorrect,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions,
this.autovalidate,
this.maxLengthEnforced,
this.maxLengthEnforcement,
this.maxLines,
this.minLines,
this.expands,
this.maxLength,
this.onChanged,
this.onTap,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.validator,
this.inputFormatters,
this.enabled,
this.cursorWidth,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.scrollPadding,
this.enableInteractiveSelection,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autofillHints,
this.scrollController,
this.restorationId,
this.autovalidateMode,
this.enableIMEPersonalizedLearning,
this.contextMenuBuilder,
this.magnifierConfiguration,
this.spellCheckConfiguration,
this.adaptive = false,
this.cupertino = false,
}) : super(key: key) {
this.label = label ?? (labelText != null ? Text(labelText) : null);
this.hintText = hintText;
}