Skip to content

Expose drop offset in DragTarget for onWillAccept #131378

@mateusfccp

Description

@mateusfccp

Is there an existing issue for this?

Use case

User drags a Draggable from one widget to another widget, and needs to know where within the latter widget's DragTarget the drop will occur before deciding if it's going to be accepted or not. The former widget may not still be mounted at this point.

Proposal

As a continuation of #55184, we should also expose drag details for onWillAccept in DragTarget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions