### Create Custom Tag Widget (_Chip) Source: https://github.com/dab246/super_tag_editor/blob/master/README.md Provides a custom widget implementation (`_Chip`) for displaying individual tags within the `TagEditor`. This example uses a Material Design Chip and defines its appearance and behavior, including a delete icon and callback. ```dart class _Chip extends StatelessWidget { const _Chip({ @required this.label, @required this.onDeleted, @required this.index, }); final String label; final ValueChanged onDeleted; final int index; @override Widget build(BuildContext context) { return Chip( labelPadding: const EdgeInsets.only(left: 8.0), label: Text(label), deleteIcon: Icon( Icons.close, size: 18, ), onDeleted: () { onDeleted(index); }, ); } } ``` -------------------------------- ### Implement TagEditor Widget in Flutter Source: https://github.com/dab246/super_tag_editor/blob/master/README.md This example illustrates the basic implementation of the `TagEditor` widget in Flutter. It covers essential properties like delimiters, add button, input decoration, tag change callback, tag builder, suggestion builder, and finding suggestions. ```dart TagEditor( length: values.length, delimiters: [',', ' '], hasAddButton: true, inputDecoration: const InputDecoration( border: InputBorder.none, hintText: 'Hint Text...', ), onTagChanged: (newValue) { setState(() { values.add(newValue); }); }, tagBuilder: (context, index) => _Chip( index: index, label: values[index], onDeleted: onDelete, ), suggestionBuilder: (context, state, data) => ListTile( key: ObjectKey(data), title: Text(data), onTap: () { state.selectSuggestion(data); }, ), suggestionsBoxElevation: 10, findSuggestions: (String query) { return []; } ) ``` -------------------------------- ### Import Super Tag Editor Package Source: https://github.com/dab246/super_tag_editor/blob/master/README.md Demonstrates the import statement required to use the Super Tag Editor's functionalities within your Dart code. ```dart import 'package:super_tag_editor/tag_editor.dart'; ``` -------------------------------- ### Add Super Tag Editor to pubspec.yaml Source: https://github.com/dab246/super_tag_editor/blob/master/README.md This snippet shows how to include the Super Tag Editor package as a dependency in your Flutter project's `pubspec.yaml` file. ```yaml dependencies: super_tag_editor: x.x.x ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.