Skip to content

[Feature Request] Draggable needs onDragEnd callback #16873

Closed

Description

@hnvn

Draggable has 3 callbacks (onDragStarted, onDraggableCanceled and onDragCompleted) but there's still a case that no callback is called: when the user drags an item and release it outside of any DragTarget, so Draggable item will move to the original position and no callback is called.

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    f: gesturesflutter/packages/flutter/gestures repository.
    on Jul 17, 2018
  2. added this to the milestone on Jul 17, 2018
  3. zoechi commented on Jan 24, 2019

    @zoechi
    Contributor

    Draggable now

    VoidCallback onDragStarted,
    DraggableCanceledCallback onDraggableCanceled,
    DragEndCallback onDragEnd,
    VoidCallback onDragCompleted,
    

    https://docs.flutter.io/flutter/widgets/Draggable/onDragEnd.html

  4. github-actions commented on Aug 15, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityf: gesturesflutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions