forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for passing in velocity and offset into Draggable.onDra…
…gCompleted (flutter#22267) * Added support for passing in velocity and offset into Draggable.onDragCompleted. * Fixed documentation of DragCompletedCallback. * Spun off previous onDragCompleted breaking changes into new callback called Draggable.onDragEnd. * Revert "Fixed documentation of DragCompletedCallback." This reverts commit 069051f. * Revert "Added support for passing in velocity and offset into Draggable.onDragCompleted." This reverts commit 7ef744a. * DraggableDetails constructor is now declared first as per Flutter code style. * Draggable.onDragEnd will only call back if its widget is currently mounted to the tree. * Moved "});" in DraggableDetails constructor to new line, vertically aligned with the constructor name, as per Flutter code style. * Added space between if statement in drag_target.dart. * widget.onDragEnd call is now formated as per flutter code style. * Added more details to DraggableDetails documentation. * Added brackets to if statement block as per Flutter code style. * Fixed minor nits in DraggableDetails documentation. * Made DraggableDetails constructor public. Also added documentation for its constructor.
- Loading branch information
Showing
2 changed files
with
343 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.