Dn-a/flutter_tags

How to inactive all tags?

jithinjoycy opened this issue · 1 comments

How to inactive all tags?

Use key for refresh Tags view.

View:
Button(
"Click to clear",
onPressed: () {
controller.reset();
}
),
Obx(
() => Tags(
key: controller.tagStateKey,
itemCount: controller.listItem.length,
itemBuilder.....
);
)

Controller:
Rx<GlobalKey> tagStateKey = GlobalKey().obs;

void reset() {
tagStateKey.value = GlobalKey();
tagStateKey.refresh();
}