textfield_tags
textfield_tags copied to clipboard
Prevent paste long text (include free spaces)
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)) {
![]() |
![]() |
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.