NikuTextFormField.label constructor
NikuTextFormField.label(
- String? label, {
- Key? key,
- 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, - AutovalidateMode? autovalidateMode,
- ScrollController? scrollController,
- String? restorationId,
- bool? enableIMEPersonalizedLearning,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
- SpellCheckConfiguration? spellCheckConfiguration,
- bool adaptive = false,
- bool cupertino = false,
Implementation
factory NikuTextFormField.label(
String? label, {
Key? key,
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,
AutovalidateMode? autovalidateMode,
ScrollController? scrollController,
String? restorationId,
bool? enableIMEPersonalizedLearning,
EditableTextContextMenuBuilder? contextMenuBuilder,
TextMagnifierConfiguration? magnifierConfiguration,
SpellCheckConfiguration? spellCheckConfiguration,
bool adaptive = false,
bool cupertino = false,
}) =>
NikuTextFormField(
controller: controller,
initialValue: initialValue,
focusNode: focusNode,
decoration: decoration,
keyboardType: keyboardType,
textCapitalization: textCapitalization,
textInputAction: textInputAction,
style: style,
labelText: label,
hintText: hintText,
strutStyle: strutStyle,
textDirection: textDirection,
textAlign: textAlign,
textAlignVertical: textAlignVertical,
autofocus: autofocus,
readOnly: readOnly,
toolbarOptions: toolbarOptions,
showCursor: showCursor,
obscuringCharacter: obscuringCharacter,
obscureText: obscureText,
autocorrect: autocorrect,
smartDashesType: smartDashesType,
smartQuotesType: smartQuotesType,
enableSuggestions: enableSuggestions,
autovalidate: autovalidate,
maxLengthEnforced: maxLengthEnforced,
maxLengthEnforcement: maxLengthEnforcement,
maxLines: maxLines,
minLines: minLines,
expands: expands,
maxLength: maxLength,
onChanged: onChanged,
onTap: onTap,
onEditingComplete: onEditingComplete,
onFieldSubmitted: onFieldSubmitted,
onSaved: onSaved,
validator: validator,
inputFormatters: inputFormatters,
enabled: enabled,
cursorWidth: cursorWidth,
cursorHeight: cursorHeight,
cursorRadius: cursorRadius,
cursorColor: cursorColor,
keyboardAppearance: keyboardAppearance,
scrollPadding: scrollPadding,
enableInteractiveSelection: enableInteractiveSelection,
selectionControls: selectionControls,
buildCounter: buildCounter,
scrollPhysics: scrollPhysics,
autofillHints: autofillHints,
autovalidateMode: autovalidateMode,
scrollController: scrollController,
restorationId: restorationId,
enableIMEPersonalizedLearning: enableIMEPersonalizedLearning,
contextMenuBuilder: contextMenuBuilder,
magnifierConfiguration: magnifierConfiguration,
spellCheckConfiguration: spellCheckConfiguration,
adaptive: adaptive,
cupertino: cupertino,
);