flutter_tags
flutter_tags copied to clipboard
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<TagsState>> tagStateKey = GlobalKey<TagsState>().obs;
void reset() { tagStateKey.value = GlobalKey<TagsState>(); tagStateKey.refresh(); }