flutter-plugins
flutter-plugins copied to clipboard
Multiple DropTargets in a PageView get their onDrag callbacks triggered instead of just one
When you have multiple DropTargets across different pages of a PageView with AutomaticKeepAliveClientMixin and you drop a file onto one of them, all the targets that are "alive" (due to the KeepAlive) fire the onDrag callbacks.
Reproduce Steps
Steps to reproduce the behavior:
- Create a PageView with two pages
- Make sure those pages use AutomaticKeepAliveClientMixin
- Place a DropTarget in each page
- Navigate to the second page
- Drop a file onto the DropTarget
- Both DropTargets fire the onDrag callbacks
Expected behavior
Only the DropTarget on the second page should fire the onDrag callbacks.
Version:
- Flutter Version: 3.7.12
- OS: Windows
- plugin: 0.4.1
Same problem here
Same problem too. Do we have any solution for this? @boyan01 @Sockitos @bellaminemo81172 ??