Closed Canada2000 closed 4 years ago
@canada4439 when starting the app with singleItem: true, all tags will have active: false. it is a use case that I had not considered but that I will implement in later versions. Temporarily to solve the problem, when starting the app, you could set singleItem: false, set active: true where you want and set singleItem: true when the boot is complete.
@Dn-a thanks a lot Antonino... I didnt know that singleItem:true
turns off active:
.
Would be useful to adjust as very often we need to "activate" a tag in code... for example when longpress
currently it does not activate... so need to take care in code.
I will close the issue... then I will try your suggestion... I will let you know if any issue... Again, great work !!! ;0)
same question
Hi @Dn-a Great work with the new ^0.4.7 flutter_tags version !!! It seems that the
active
property is not working when we need to activate a specific tag programatically. For example :active: (index == 1) ? true : false,
does not activate the 1st Tag only.Here is a short example that works with no errors... I was expecting that one of the tags is already activated when the app starts... but none is activated until we select one... how can we specify the selected/active tag in the code?
----Complete Code using: flutter_tags: "^0.4.7":-------