MixinNetwork / MixinNetwork/flutter-plugins
Multiple DropTargets in a PageView get their onDrag callbacks triggered instead of just one
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 512
- Forks
- 292
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 7
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a Windows Flutter PageView containing two pages, AutomaticKeepAliveClientMixin, and one DropTarget per page. Start by tracing DropTarget handling during the reported navigation and drop sequence; done means only the DropTarget on the visible second page fires its onDrag callbacks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100