NikuTextFormField constructor

NikuTextFormField({
  1. Key? key,
  2. Widget? label,
  3. String? labelText,
  4. String? hintText,
  5. TextEditingController? controller,
  6. String? initialValue,
  7. FocusNode? focusNode,
  8. NikuInputDecoration? decoration,
  9. TextInputType? keyboardType,
  10. TextCapitalization? textCapitalization,
  11. TextInputAction? textInputAction,
  12. NikuTextStyle? style,
  13. NikuStrutStyle? strutStyle,
  14. TextDirection? textDirection,
  15. TextAlign? textAlign,
  16. TextAlignVertical? textAlignVertical,
  17. bool? autofocus,
  18. bool? readOnly,
  19. ToolbarOptions? toolbarOptions,
  20. bool? showCursor,
  21. String? obscuringCharacter,
  22. bool? obscureText,
  23. bool? autocorrect,
  24. SmartDashesType? smartDashesType,
  25. SmartQuotesType? smartQuotesType,
  26. bool? enableSuggestions,
  27. bool? autovalidate,
  28. bool? maxLengthEnforced,
  29. MaxLengthEnforcement? maxLengthEnforcement,
  30. int? maxLines,
  31. int? minLines,
  32. bool? expands,
  33. int? maxLength,
  34. ValueChanged<String>? onChanged,
  35. GestureTapCallback? onTap,
  36. VoidCallback? onEditingComplete,
  37. ValueChanged<String>? onFieldSubmitted,
  38. FormFieldSetter<String>? onSaved,
  39. FormFieldValidator<String>? validator,
  40. List<TextInputFormatter>? inputFormatters,
  41. bool? enabled,
  42. double? cursorWidth,
  43. double? cursorHeight,
  44. Radius? cursorRadius,
  45. Color? cursorColor,
  46. Brightness? keyboardAppearance,
  47. EdgeInsets? scrollPadding,
  48. bool? enableInteractiveSelection,
  49. TextSelectionControls? selectionControls,
  50. InputCounterWidgetBuilder? buildCounter,
  51. ScrollPhysics? scrollPhysics,
  52. Iterable<String>? autofillHints,
  53. ScrollController? scrollController,
  54. String? restorationId,
  55. AutovalidateMode? autovalidateMode,
  56. bool? enableIMEPersonalizedLearning,
  57. EditableTextContextMenuBuilder? contextMenuBuilder,
  58. TextMagnifierConfiguration? magnifierConfiguration,
  59. SpellCheckConfiguration? spellCheckConfiguration,
  60. bool adaptive = false,
  61. 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;
}