Skip to content
pubscout

material_tag_editor

0.1.2, released 5 years ago by an unverified publisher

A simple tag editor widget designed to act and feel similar to the standard Material TextField.

WASM-ready
$ flutter pub add material_tag_editor
Source repository

What it does

Allows users to input tags dynamically using a Material-styled text field with delimiters. It supports custom chip builders and exposes properties like controllers, focus nodes, and input formatters.

AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a Material-style tag input or chip entry field in your form.
  • You want to split tags automatically using delimiters like spaces or commas.

Skip it when

  • You need a complex multi-select dropdown that is not tag-based.
  • You are using a non-Material design system.

Strengths

  • Feels similar to the standard Material TextField.
  • Supports custom tag builders (e.g., using Chip).
  • Exposes useful properties like TextEditingController and FocusNode.

Weaknesses

  • Limited to tag input functionality.
  • No documentation on topics or advanced use cases beyond basic setup.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
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(
    label: Text(values[index]),
    onDeleted: () {},
  ),
)

Alternatives

Packages that do the same job and could replace material_tag_editor.