ChipInput<T> constructor

const ChipInput<T>({
  1. Key? key,
  2. Object groupId = EditableText,
  3. ChipEditingController<T>? controller,
  4. FocusNode? focusNode,
  5. BoxDecoration? decoration,
  6. EdgeInsetsGeometry? padding,
  7. Widget? placeholder,
  8. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  9. String? clearButtonSemanticLabel,
  10. TextInputType? keyboardType,
  11. TextInputAction? textInputAction,
  12. TextCapitalization textCapitalization = TextCapitalization.none,
  13. TextStyle? style,
  14. StrutStyle? strutStyle,
  15. TextAlign textAlign = TextAlign.start,
  16. TextAlignVertical? textAlignVertical,
  17. TextDirection? textDirection,
  18. bool readOnly = false,
  19. bool? showCursor,
  20. bool autofocus = false,
  21. String obscuringCharacter = '•',
  22. bool obscureText = false,
  23. bool autocorrect = true,
  24. SmartDashesType smartDashesType = SmartDashesType.enabled,
  25. SmartQuotesType smartQuotesType = SmartQuotesType.enabled,
  26. bool enableSuggestions = true,
  27. int? maxLines = 1,
  28. int? minLines,
  29. bool expands = false,
  30. int? maxLength,
  31. MaxLengthEnforcement? maxLengthEnforcement,
  32. ValueChanged<String>? onChanged,
  33. VoidCallback? onEditingComplete,
  34. ValueChanged<String>? onSubmitted,
  35. TapRegionCallback? onTapOutside,
  36. TapRegionCallback? onTapUpOutside,
  37. List<TextInputFormatter>? inputFormatters,
  38. bool enabled = true,
  39. double cursorWidth = 2.0,
  40. double? cursorHeight,
  41. Radius cursorRadius = const Radius.circular(2.0),
  42. bool cursorOpacityAnimates = true,
  43. Color? cursorColor,
  44. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  45. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  46. Brightness? keyboardAppearance,
  47. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  48. bool enableInteractiveSelection = true,
  49. TextSelectionControls? selectionControls,
  50. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  51. ScrollController? scrollController,
  52. ScrollPhysics? scrollPhysics,
  53. GestureTapCallback? onTap,
  54. Iterable<String>? autofillHints = const [],
  55. Clip clipBehavior = Clip.hardEdge,
  56. String? restorationId,
  57. bool stylusHandwritingEnabled = EditableText.defaultStylusHandwritingEnabled,
  58. bool enableIMEPersonalizedLearning = true,
  59. ContentInsertionConfiguration? contentInsertionConfiguration,
  60. EditableTextContextMenuBuilder? contextMenuBuilder,
  61. String? initialValue,
  62. String? hintText,
  63. Border? border,
  64. BorderRadiusGeometry? borderRadius,
  65. bool? filled,
  66. WidgetStatesController? statesController,
  67. TextMagnifierConfiguration? magnifierConfiguration,
  68. SpellCheckConfiguration? spellCheckConfiguration,
  69. UndoHistoryController? undoController,
  70. List<InputFeature> features = const [],
  71. List<TextInputFormatter>? submitFormatters = const [],
  72. bool skipInputFeatureFocusTraversal = false,
  73. required ChipWidgetBuilder<T> chipBuilder,
  74. required ChipSubmissionCallback<T> onChipSubmitted,
  75. bool autoInsertSuggestion = true,
  76. ValueChanged<List<T>>? onChipsChanged,
  77. bool? useChips,
  78. List<T>? initialChips,
  79. ClipboardHandler<T>? clipboardHandler,
})

Creates a chip input widget.

Implementation

const ChipInput({
  super.key,
  super.groupId,
  ChipEditingController<T>? super.controller,
  super.focusNode,
  super.decoration,
  super.padding,
  super.placeholder,
  super.crossAxisAlignment,
  super.clearButtonSemanticLabel,
  super.keyboardType,
  super.textInputAction,
  super.textCapitalization,
  super.style,
  super.strutStyle,
  super.textAlign,
  super.textAlignVertical,
  super.textDirection,
  super.readOnly,
  super.showCursor,
  super.autofocus,
  super.obscuringCharacter,
  super.obscureText,
  super.autocorrect,
  super.smartDashesType,
  super.smartQuotesType,
  super.enableSuggestions,
  super.maxLines,
  super.minLines,
  super.expands,
  super.maxLength,
  super.maxLengthEnforcement,
  super.onChanged,
  super.onEditingComplete,
  super.onSubmitted,
  super.onTapOutside,
  super.onTapUpOutside,
  super.inputFormatters,
  super.enabled,
  super.cursorWidth,
  super.cursorHeight,
  super.cursorRadius,
  super.cursorOpacityAnimates,
  super.cursorColor,
  super.selectionHeightStyle,
  super.selectionWidthStyle,
  super.keyboardAppearance,
  super.scrollPadding,
  super.enableInteractiveSelection,
  super.selectionControls,
  super.dragStartBehavior,
  super.scrollController,
  super.scrollPhysics,
  super.onTap,
  super.autofillHints,
  super.clipBehavior,
  super.restorationId,
  super.stylusHandwritingEnabled,
  super.enableIMEPersonalizedLearning,
  super.contentInsertionConfiguration,
  super.contextMenuBuilder,
  super.initialValue,
  super.hintText,
  super.border,
  super.borderRadius,
  super.filled,
  super.statesController,
  super.magnifierConfiguration,
  super.spellCheckConfiguration,
  super.undoController,
  super.features,
  super.submitFormatters,
  super.skipInputFeatureFocusTraversal,
  required this.chipBuilder,
  required this.onChipSubmitted,
  this.autoInsertSuggestion = true,
  this.onChipsChanged,
  this.useChips,
  this.initialChips,
  this.clipboardHandler,
});