Skip to content

Instantly share code, notes, and snippets.

@hl3hl3
Last active October 26, 2019 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hl3hl3/154c372bae12c3d623bd08b87d72aba8 to your computer and use it in GitHub Desktop.
Save hl3hl3/154c372bae12c3d623bd08b87d72aba8 to your computer and use it in GitHub Desktop.
Draggable example
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