From f1518e6dd6315a4c7ab67d897350b792baf07a7d Mon Sep 17 00:00:00 2001 From: Mathis Dupuy Date: Mon, 16 Nov 2020 16:27:51 +0100 Subject: [PATCH] Allow deselection of an item when singleItem is true PL for issue #69 --- lib/src/item_tags.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/item_tags.dart b/lib/src/item_tags.dart index 65a9653..dd08a98 100644 --- a/lib/src/item_tags.dart +++ b/lib/src/item_tags.dart @@ -244,7 +244,7 @@ class _ItemTagsState extends State { ? () { if (widget.singleItem) { _singleItem(_dataListInherited, _dataList); - _dataList.active = true; + _dataList.active = _dataList.active ? false : true; } else _dataList.active = !_dataList.active;