I’d like to implement a page to display a list of items in grid style in which the rows and columns are changed dynamically based on screen size.
I already checked the iced_taffy intergration which is too old, outdated, and I am using the lasted iced, the self argument in following method is not mutabled any more, so we don’t have a way to mutate parent-children layout, however the taffy methods need to mutate the tree.
I found that my case is very similar to A table / scrollable that can handle thousands of items? - Learn - iced, but I need to display items in both grid and list view mode? Will the comming ListView widget support the grid view mode? for grid view mode, the rows and columns are dynamically adjusted based on window size.
Then in the update() method handle your WindowResized message and store the size somewhere and then in the view() method calculate rows, columns, whatever accordingly.