hcbpassos / drag_select_grid_view

A grid that supports both dragging and tapping to select its items.
BSD 2-Clause "Simplified" License
133 stars 34 forks source link

Need to pop twice after selecting #27

Closed vincentderidder closed 2 years ago

vincentderidder commented 2 years ago

Whenever a user selects anything in de grid, I need to pop twice to go to the previous page. The first time, the selection dissapears, the second time we actually go to the previous page.

When selection doesn't get changed, pop works the first time.

hcbpassos commented 2 years ago

thanks for openning this issue ❤️

that's the expected behavior. do you see any room for improvement?

hcbpassos commented 2 years ago

closing due to lack of response.

vontdeux commented 1 year ago

having this issue now, i think if there's a bool to set this behaviour would be benefecial. to give some perspective I have a screen with tabview, with 3 of this grid inside each tab and after selected on all 3 grid, to go back, i need to press 3 times to clear the selection, and once to get back to previous screen.

HarshavardhanNetha commented 11 months ago

Hello @hcbpassos I observed that, in the documentation, it is mentioned, if DragSelectGridView.unselectOnWillPop is set to false, we don't need to pop twice after selection. But, unfortunately, I can't find the parameter in DragSelectGridView class.

Can you help me fix this?