Last active
October 26, 2019 10:11
-
-
Save hl3hl3/154c372bae12c3d623bd08b87d72aba8 to your computer and use it in GitHub Desktop.
Draggable example
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
Draggable( | |
// ... | |
onDragStarted: () { | |
debugPrint('onDragStarted(), 開始拖動'); | |
}, | |
onDraggableCanceled: (Velocity velocity, Offset offset) { | |
debugPrint('onDraggableCanceled(), 被放掉+沒被接受'); | |
}, | |
onDragCompleted: () { | |
debugPrint('onDragCompleted(), 被放掉+接受'); | |
}, | |
onDragEnd: (DraggableDetails details) { | |
debugPrint('onDragEnd(), 被放掉'); | |
}, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment