How to inactive all tags?
jithinjoycy opened this issue · 1 comments
jithinjoycy commented
How to inactive all tags?
pulpcorn commented
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();
}