Dn-a / flutter_tags

With flutter tags you can create selectable or input tags that automatically adapt to the screen width
https://pub.dartlang.org/packages/flutter_tags
MIT License
507 stars 127 forks source link

How to inactive all tags? #58

Open jithinjoycy opened 4 years ago

pulpcorn commented 1 year ago

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(); }