textfield_tags icon indicating copy to clipboard operation
textfield_tags copied to clipboard

Prevent paste long text (include free spaces)

Open parsadoc opened this issue 2 years ago • 1 comments

You can paste a long text with many free spaces without any problem! and Input doesn't detect any worlds as tags! How to prevent that? Of course, it happens for some texts like this one:

if(resolution.categories!.any((e) => e.toLowerCase() == tag)) {

parsadoc avatar Aug 09 '22 06:08 parsadoc

You're right there. If you paste a text, it won't evaluate the whole text because the widget is listening for only input data entered by the user (as in one text value at a time). If the user pastes a whole text value, it can only check the last of that entered data to see it matches with the conditions of the text separator you gave it.

eyoeldefare avatar Sep 15 '22 16:09 eyoeldefare