Skip to content

textfield_tags 3.0.0 has multiple issues #83

@emanuelzallikodelabs

Description

@emanuelzallikodelabs

I have the upgraded version from 2.1.1 to 3.0.0.

  1. The validator inside TextFieldTags does not work I can not validate.
  2. textSeparators do not work

This is my example:

                          textSeparators: const [' ', ',', '.', '-'],
                          validator: (dynamic tag) {
                            var errorText = RegExp(r'^[a-z]+$');
                            var errorSymbol =
                                RegExp(r'[\^$*.\[\]{}()?\"!@#%&/\,><:;_~`+='
                                    "'"
                                    ']');
                            if (tag.toLowerCase().contains(errorText) ||
                                tag.contains(errorSymbol)) {
                              return '${AppLocalizations.of(context)?.pleaseEnterNumbersOnly}';
                            } else if (_controller.getTags!.contains(tag)) {
                              return '${AppLocalizations.of(context)?.youAlreadyEnteredThat}';
                            }
                            return null;
                          },

When I downgraded the version from 3.0.0 to 2.1.1 work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions