TagEditor constructor
const
TagEditor({
- required int length,
- double minTextFieldWidth = 160.0,
- double tagSpacing = 4.0,
- required Widget tagBuilder(),
- required ValueChanged<
String> onTagChanged, - Key? key,
- FocusNode? focusNode,
- bool hasAddButton = true,
- List<
String> delimiters = const [], - IconData? icon,
- bool enabled = true,
- TextEditingController? controller,
- TextStyle? textStyle,
- InputDecoration inputDecoration = const InputDecoration(),
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool readOnly = false,
- bool autofocus = false,
- bool autocorrect = false,
- bool enableSuggestions = true,
- int maxLines = 1,
- bool resetTextOnSubmitted = false,
- ValueChanged<
String> ? onSubmitted, - Brightness? keyboardAppearance,
Implementation
const TagEditor({
required this.length,
this.minTextFieldWidth = 160.0,
this.tagSpacing = 4.0,
required this.tagBuilder,
required this.onTagChanged,
Key? key,
this.focusNode,
this.hasAddButton = true,
this.delimiters = const [],
this.icon,
this.enabled = true,
// TextField's properties
this.controller,
this.textStyle,
this.inputDecoration = const InputDecoration(),
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.textDirection,
this.readOnly = false,
this.autofocus = false,
this.autocorrect = false,
this.enableSuggestions = true,
this.maxLines = 1,
this.resetTextOnSubmitted = false,
this.onSubmitted,
this.keyboardAppearance,
}) : super(key: key);