Listener problem for Lists in Flutter
I have a component with ViewModelInstanceBoolean “isSelected” and “isEnabled” properties.
When I create an instance of the component in the parent artboard, I can access all the databinding of the component and successfully get state changes through the addListener.
But when I add the same component into a List (scrolling) in that parent artboard, I lose the listeners. The vm and vmi are all working as I can see the instance, the databinding for the rest of the component is good, and I can see that the listeners are attached in the runtime through checking the numberOfListeners.
I really would love to keep this in the List for better scrolling and layout management. It just seems that when it is in a list, the listeners don’t stay connected. And the minute we put it back in the parent it is seen.