MixinNetwork / MixinNetwork/flutter-plugins

[desktop_drop] Capture DnD events in the visible page

Open
#2 3 comments 0 reactions 1 assignee View on GitHub

@boyan01 is already working on this.

Since Aug 21, 2021.

desktop_drop enhancement feature-request help wanted
Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

Our app has a typical master-detail setup, where dragging files into the master page will create a new entry, and doing it on the detail page will add to the existing entry.

The problem we're having is that when we drag items into the detail page, the master page also reacts to the drag-and-drop events, despite being in the background.

I believe this is due to how the Flutter Navigator works. We're using Navigator.push() to load the detail page, but it seems the master page is still active in the background. Normally this isn't an issue since touch events are captured by the topmost page.

Is there any recommendation on how to get around this? Better would be if the DropTarget could capture and consume those events itself.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.