Closed lucidre closed 11 months ago
Did the issue solve? I'm encountering the similar problem. I couldn't find the solution anywhere.
Did the issue solve? I'm encountering the similar problem. I couldn't find the solution anywhere.
solve this issue in latest version of this package https://pub.dev/packages/flutter_draggable_gridview
ERROR I encounter a problem while utilizing multiple draggable grid views within a single page.
The code segments are somewhat lengthy, so I'll display only the pertinent portions, kindly note that both list contains items of different classes and have different lengths.
FIRST GRIDVIEW.
SECOND GRIDVIEW
FURTHER EXPLANATION Both Gridviews utilize a similar widget, albeit with distinct parameters sourced from separate lists. The initial Gridview draws from the 'image' list, whereas the subsequent one relies on the 'style' list. Upon rendering, these Gridviews are anticipated to exhibit distinct visual appearances.
However, a disparity arises during the rendering process, as both the first and second lists exhibit the same content—the second item—accompanied by some visual irregularities. Also an element can be dragged from the first to the second and this results in a disruptive confluence of content and this should not even work.
An endeavor was made to address this issue by rearranging the order of the lists within the column layout. Intriguingly, this modification led to a change in the widget rendered: the two lists no longer showed the same content of the second code but now showed that of the first.
LIBRARY VERSION flutter_draggable_gridview: ^0.0.8
Here's a glimpse of the present state with both grids visible. Please be aware that the UI of the second grid is the one always rendered on both.
And this serves as a preview of the display when one of the grid is converted to the normal flutter grid view . It's important to highlight that no major code modifications were made (only changes back to the standard grid view) and under these circumstances, the list is rendered accurately.
The codes where tested on an iPhone 14 pro max simualator