CustomListTileInputTextarea constructor

const CustomListTileInputTextarea({
  1. required String? titleText,
  2. Key? key,
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. TextInputType? keyboardType,
  6. TextCapitalization textCapitalization = TextCapitalization.none,
  7. TextInputAction? textInputAction,
  8. TextStyle? style,
  9. StrutStyle? strutStyle,
  10. TextDirection? textDirection,
  11. TextAlign textAlign = TextAlign.start,
  12. TextAlignVertical? textAlignVertical,
  13. bool autofocus = false,
  14. bool readOnly = false,
  15. bool? showCursor,
  16. String obscuringCharacter = '*',
  17. bool obscureText = false,
  18. bool autocorrect = true,
  19. SmartDashesType? smartDashesType,
  20. SmartQuotesType? smartQuotesType,
  21. bool enableSuggestions = true,
  22. MaxLengthEnforcement? maxLengthEnforcement,
  23. int? maxLines = 4,
  24. int? minLines,
  25. bool expands = false,
  26. int? maxLength,
  27. ValueChanged<String>? onChanged,
  28. GestureTapCallback? onTap,
  29. TapRegionCallback? onTapOutside,
  30. List<TextInputFormatter>? inputFormatters,
  31. bool? enabled,
  32. double cursorWidth = 2.0,
  33. double? cursorHeight,
  34. Radius? cursorRadius,
  35. Color? cursorColor,
  36. Brightness? keyboardAppearance,
  37. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  38. bool? enableInteractiveSelection,
  39. TextSelectionControls? selectionControls,
  40. InputCounterWidgetBuilder? buildCounter,
  41. ScrollPhysics? scrollPhysics,
  42. Iterable<String>? autofillHints,
  43. ScrollController? scrollController,
  44. String? restorationId,
  45. bool enableIMEPersonalizedLearning = true,
  46. MouseCursor? mouseCursor,
  47. SpellCheckConfiguration? spellCheckConfiguration,
  48. TextMagnifierConfiguration? magnifierConfiguration,
  49. UndoHistoryController? undoController,
  50. AppPrivateCommandCallback? onAppPrivateCommand,
  51. bool? cursorOpacityAnimates,
  52. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  53. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  54. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  55. ContentInsertionConfiguration? contentInsertionConfiguration,
  56. Clip clipBehavior = Clip.hardEdge,
  57. bool stylusHandwritingEnabled = true,
  58. bool canRequestFocus = true,
  59. InputDecoration? decoration,
  60. Widget? title,
  61. bool? isRequired,
  62. CustomInputSize size = CustomInputSize.small,
  63. bool useCameraScanner = false,
  64. double? width,
  65. ValueChanged<String>? onFieldSubmitted,
  66. bool showBorder = true,
  67. Widget? subtitle,
  68. String? subtitleText,
  69. String? initialValue,
})

ListTileInputTextarea 列表项文本域组件

Implementation

const CustomListTileInputTextarea({
  // -------------------------------------------------------------------- > Custom
  required this.titleText,
  super.key,
  // -------------------------------------------------------------------- > TextField
  this.controller,
  this.focusNode,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.obscuringCharacter = '*',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 4,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onTapOutside,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.scrollController,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.undoController,
  this.onAppPrivateCommand,
  this.cursorOpacityAnimates,
  this.selectionHeightStyle = BoxHeightStyle.tight,
  this.selectionWidthStyle = BoxWidthStyle.tight,
  this.dragStartBehavior = DragStartBehavior.start,
  this.contentInsertionConfiguration,
  this.clipBehavior = Clip.hardEdge,
  this.stylusHandwritingEnabled = true,
  this.canRequestFocus = true,
  this.decoration,
  this.title,
  this.isRequired,
  this.size = CustomInputSize.small,
  this.useCameraScanner = false,
  this.width,
  this.onFieldSubmitted,
  this.showBorder = true,
  this.subtitle,
  this.subtitleText,
  this.initialValue,
})  : assert(
        (title == null && titleText == null && isRequired == null) ||
            ((title != null || titleText != null || isRequired != null) &&
                !(title != null && (titleText != null || isRequired != null))),
        '不能同时指定 title 与 titleText 、 isRequired',
      ),
      assert(!(subtitle != null && subtitleText != null), '不能同时设置 subtitle 和 subtitleText');