Closed kc853 closed 6 years ago
The children of a CollectionView
are not a valid return value and should not be used. Since you are reusing the cells in the CV you can not access the widgets outside of the updateCells method.
OK, may be it's worth to mention in the docs. Thank you.
Closing the issue as resolved.
Problem description
I was trying to access the children() collection of a CollectionView using the
index
in theselect
event. I got strange results. I then did a test (see code snippet) and recognized that the children() collection is not as long as expected. It grows on scrolling but stops at max. 23 on my phone. What could be the problem?Expected behavior
The children() collection should contain one object for each cell of the CollectionView.
Environment
Code snippet