drag_select_grid_view
drag_select_grid_view copied to clipboard
about pop twice after selecting cause some problems
HI, I am new to flutter and have some question about the pop twice after selecting. I know when select the grid with longpress will in drag_select mode, but there's not have a onTap to switch on it. To solve it I use another GestureDetector with onTap to separated those two function and it work fine on select grid.
onTap like this GestureDetector( onTap: () { widget.selectedImages(widget.url); debugPrint(" ${widget.isSelected}"); debugPrint(" ${scaleAnimation.value}"); }, ),
But because onTap don't need to pop twice, when I use cancel button, I can't know which is onTap, which is longpress.
- How do I know the drag_select mode is trigger or not ? Beacause If I knew, I can pop When I want.
And how to I return itembuilder status to the father layer?
- Another question is about scroll, I use SmartRefresher now, and if I add a DragSelectGridView in SmartRefresher child, the Refresher will not work. And if I add nerverScrollPhysis on DragSelectGridView, it can refresh widget but can't scroll the grid.
If you read this, I will appreciate you. Thank you for your reading.