BetterTextfield constructor

const BetterTextfield({
  1. Key? key,
  2. required double? height,
  3. required double? width,
  4. bool? autocorrect,
  5. Iterable<String>? autofillHints,
  6. bool? autofocus,
  7. Clip? clipBehavior,
  8. TextEditingController? controller,
  9. Color? cursorColor,
  10. double? cursorHeight,
  11. Radius? cursorRadius,
  12. double? cursorWidth,
  13. InputDecoration? decoration,
  14. DragStartBehavior? dragStartBehavior,
  15. bool? enabled,
  16. bool? enableIMEPersonalizedLearning,
  17. bool? enableInteractiveSelection,
  18. bool? enableSuggestions,
  19. FocusNode? focusNode,
  20. List<TextInputFormatter>? inputFormatters,
  21. Brightness? keyboardAppearance,
  22. TextInputType? keyboardType,
  23. int? maxLength,
  24. MaxLengthEnforcement? maxLengthEnforcement,
  25. int? minLines,
  26. MouseCursor? mouseCursor,
  27. bool? obscureText,
  28. String? obscuringCharacter,
  29. InputCounterWidgetBuilder? buildCounter,
  30. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  31. void onChanged(
    1. String
    )?,
  32. void onEditingComplete()?,
  33. void onSubmitted(
    1. String
    )?,
  34. void onTap()?,
  35. bool? readOnly,
  36. String? restorationId,
  37. ScrollController? scrollController,
  38. EdgeInsets? scrollPadding,
  39. ScrollPhysics? scrollPhysics,
  40. TextSelectionControls? selectionControls,
  41. BoxHeightStyle? selectionHeightStyle,
  42. BoxWidthStyle? selectionWidthStyle,
  43. bool? showCursor,
  44. SmartDashesType? smartDashesType,
  45. SmartQuotesType? smartQuotesType,
  46. StrutStyle? strutStyle,
  47. TextStyle? style,
  48. TextAlign? textAlign,
  49. TextCapitalization? textCapitalization,
  50. TextDirection? textDirection,
  51. TextInputAction? textInputAction,
  52. ToolbarOptions? toolbarOptions,
})

Implementation

const BetterTextfield({
  Key? key,
  required this.height,
  required this.width,
  this.autocorrect,
  this.autofillHints,
  this.autofocus,
  this.clipBehavior,
  this.controller,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth,
  this.decoration,
  this.dragStartBehavior,
  this.enabled,
  this.enableIMEPersonalizedLearning,
  this.enableInteractiveSelection,
  this.enableSuggestions,
  this.focusNode,
  this.inputFormatters,
  this.keyboardAppearance,
  this.keyboardType,
  this.maxLength,
  this.maxLengthEnforcement,
  this.minLines,
  this.mouseCursor,
  this.obscureText,
  this.obscuringCharacter,
  this.buildCounter,
  this.onAppPrivateCommand,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onTap,
  this.readOnly,
  this.restorationId,
  this.scrollController,
  this.scrollPadding,
  this.scrollPhysics,
  this.selectionControls,
  this.selectionHeightStyle,
  this.selectionWidthStyle,
  this.showCursor,
  this.smartDashesType,
  this.smartQuotesType,
  this.strutStyle,
  this.style,
  this.textAlign,
  this.textCapitalization,
  this.textDirection,
  this.textInputAction,
  this.toolbarOptions,
}) : super(key: key);