flutter_tags icon indicating copy to clipboard operation
flutter_tags copied to clipboard

How to inactive all tags?

Open jithinjoycy opened this issue 4 years ago • 1 comments

jithinjoycy avatar Aug 03 '20 16:08 jithinjoycy

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<TagsState>> tagStateKey = GlobalKey<TagsState>().obs;

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

pulpcorn avatar Dec 24 '22 08:12 pulpcorn