Skip to content

Commit cfc6c9a

Browse files
committed
feat: split tag input by whitespaces to avoid whitespaces in each tag
1 parent 71fa85e commit cfc6c9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/app/modules/home/views/add_task_bottom_sheet.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@ class AddTaskBottomSheet extends StatelessWidget {
526526
void addTag(String tag) {
527527
if (tag.isNotEmpty) {
528528
String trimmedString = tag.trim();
529-
homeController.tags.add(trimmedString);
529+
trimmedString.split(" ").forEach((v) {
530+
homeController.tags.add(v);
531+
});
530532
homeController.tagcontroller.text = '';
531533
}
532534
}

0 commit comments

Comments
 (0)