{"action":"created","comment":{"url":"https://api.github.com/repos/flutter/flutter/pulls/comments/57484511","id":57484511,"diff_hunk":"@@ -248,9 +263,12 @@ class _DraggableState<T> extends State<DraggableBase<T>> {\n       dragStartPoint: dragStartPoint,\n       feedback: config.feedback,\n       feedbackOffset: config.feedbackOffset,\n-      onDragEnd: () {\n+      onDragEnd: (Velocity velocity, bool wasAccepted) {\n         setState(() {\n           _activeCount -= 1;\n+          if (!wasAccepted && _activeCount == 0 && config.onDraggableDropped != null) {\n+            config.onDraggableDropped(velocity);\n+          }","path":"packages/flutter/lib/src/widgets/drag_target.dart","position":120,"original_position":120,"commit_id":"bed7e700cc804e9ec3a3024382da7ad33bb280c7","original_commit_id":"bed7e700cc804e9ec3a3024382da7ad33bb280c7","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"body":"no braces around one-line blocks","created_at":"2016-03-25T20:03:34Z","updated_at":"2016-03-25T20:03:34Z","html_url":"https://github.com/flutter/flutter/pull/2907#discussion_r57484511","pull_request_url":"https://api.github.com/repos/flutter/flutter/pulls/2907","_links":{"self":{"href":"https://api.github.com/repos/flutter/flutter/pulls/comments/57484511"},"html":{"href":"https://github.com/flutter/flutter/pull/2907#discussion_r57484511"},"pull_request":{"href":"https://api.github.com/repos/flutter/flutter/pulls/2907"}}},"pull_request":{"url":"https://api.github.com/repos/flutter/flutter/pulls/2907","id":64200977,"html_url":"https://github.com/flutter/flutter/pull/2907","diff_url":"https://github.com/flutter/flutter/pull/2907.diff","patch_url":"https://github.com/flutter/flutter/pull/2907.patch","issue_url":"https://api.github.com/repos/flutter/flutter/issues/2907","number":2907,"state":"open","locked":false,"title":"Add a callback when a Draggable is dropped without being accepted.","user":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"body":"Related: https://github.com/flutter/flutter/issues/1837\r\n\r\n@Hixie ","created_at":"2016-03-25T19:57:59Z","updated_at":"2016-03-25T20:03:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35e24c8b0571d104a3fb5c6010c154555c7b4ca8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flutter/flutter/pulls/2907/commits","review_comments_url":"https://api.github.com/repos/flutter/flutter/pulls/2907/comments","review_comment_url":"https://api.github.com/repos/flutter/flutter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/2907/comments","statuses_url":"https://api.github.com/repos/flutter/flutter/statuses/bed7e700cc804e9ec3a3024382da7ad33bb280c7","head":{"label":"apwilson:velocity_drop","ref":"velocity_drop","sha":"bed7e700cc804e9ec3a3024382da7ad33bb280c7","user":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"repo":{"id":52545451,"name":"flutter","full_name":"apwilson/flutter","owner":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apwilson/flutter","description":"Framework for building high-performance, high-fidelity iOS and Android apps","fork":true,"url":"https://api.github.com/repos/apwilson/flutter","forks_url":"https://api.github.com/repos/apwilson/flutter/forks","keys_url":"https://api.github.com/repos/apwilson/flutter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apwilson/flutter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apwilson/flutter/teams","hooks_url":"https://api.github.com/repos/apwilson/flutter/hooks","issue_events_url":"https://api.github.com/repos/apwilson/flutter/issues/events{/number}","events_url":"https://api.github.com/repos/apwilson/flutter/events","assignees_url":"https://api.github.com/repos/apwilson/flutter/assignees{/user}","branches_url":"https://api.github.com/repos/apwilson/flutter/branches{/branch}","tags_url":"https://api.github.com/repos/apwilson/flutter/tags","blobs_url":"https://api.github.com/repos/apwilson/flutter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apwilson/flutter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apwilson/flutter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apwilson/flutter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apwilson/flutter/statuses/{sha}","languages_url":"https://api.github.com/repos/apwilson/flutter/languages","stargazers_url":"https://api.github.com/repos/apwilson/flutter/stargazers","contributors_url":"https://api.github.com/repos/apwilson/flutter/contributors","subscribers_url":"https://api.github.com/repos/apwilson/flutter/subscribers","subscription_url":"https://api.github.com/repos/apwilson/flutter/subscription","commits_url":"https://api.github.com/repos/apwilson/flutter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apwilson/flutter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apwilson/flutter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apwilson/flutter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apwilson/flutter/contents/{+path}","compare_url":"https://api.github.com/repos/apwilson/flutter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apwilson/flutter/merges","archive_url":"https://api.github.com/repos/apwilson/flutter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apwilson/flutter/downloads","issues_url":"https://api.github.com/repos/apwilson/flutter/issues{/number}","pulls_url":"https://api.github.com/repos/apwilson/flutter/pulls{/number}","milestones_url":"https://api.github.com/repos/apwilson/flutter/milestones{/number}","notifications_url":"https://api.github.com/repos/apwilson/flutter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apwilson/flutter/labels{/name}","releases_url":"https://api.github.com/repos/apwilson/flutter/releases{/id}","deployments_url":"https://api.github.com/repos/apwilson/flutter/deployments","created_at":"2016-02-25T17:58:25Z","updated_at":"2016-02-25T17:58:27Z","pushed_at":"2016-03-25T19:56:51Z","git_url":"git://github.com/apwilson/flutter.git","ssh_url":"git@github.com:apwilson/flutter.git","clone_url":"https://github.com/apwilson/flutter.git","svn_url":"https://github.com/apwilson/flutter","homepage":"http://flutter.io","size":14654,"stargazers_count":0,"watchers_count":0,"language":"Dart","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flutter:master","ref":"master","sha":"03830d56768462b3c913e70647a668a3eecb8858","user":{"login":"flutter","id":14101776,"avatar_url":"https://avatars.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"repo":{"id":31792824,"name":"flutter","full_name":"flutter/flutter","owner":{"login":"flutter","id":14101776,"avatar_url":"https://avatars.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flutter/flutter","description":"Framework for building high-performance, high-fidelity iOS and Android apps","fork":false,"url":"https://api.github.com/repos/flutter/flutter","forks_url":"https://api.github.com/repos/flutter/flutter/forks","keys_url":"https://api.github.com/repos/flutter/flutter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter/flutter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter/flutter/teams","hooks_url":"https://api.github.com/repos/flutter/flutter/hooks","issue_events_url":"https://api.github.com/repos/flutter/flutter/issues/events{/number}","events_url":"https://api.github.com/repos/flutter/flutter/events","assignees_url":"https://api.github.com/repos/flutter/flutter/assignees{/user}","branches_url":"https://api.github.com/repos/flutter/flutter/branches{/branch}","tags_url":"https://api.github.com/repos/flutter/flutter/tags","blobs_url":"https://api.github.com/repos/flutter/flutter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter/flutter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter/flutter/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter/flutter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter/flutter/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter/flutter/languages","stargazers_url":"https://api.github.com/repos/flutter/flutter/stargazers","contributors_url":"https://api.github.com/repos/flutter/flutter/contributors","subscribers_url":"https://api.github.com/repos/flutter/flutter/subscribers","subscription_url":"https://api.github.com/repos/flutter/flutter/subscription","commits_url":"https://api.github.com/repos/flutter/flutter/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter/flutter/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter/flutter/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter/flutter/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter/flutter/contents/{+path}","compare_url":"https://api.github.com/repos/flutter/flutter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter/flutter/merges","archive_url":"https://api.github.com/repos/flutter/flutter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter/flutter/downloads","issues_url":"https://api.github.com/repos/flutter/flutter/issues{/number}","pulls_url":"https://api.github.com/repos/flutter/flutter/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter/flutter/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter/flutter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter/flutter/labels{/name}","releases_url":"https://api.github.com/repos/flutter/flutter/releases{/id}","deployments_url":"https://api.github.com/repos/flutter/flutter/deployments","created_at":"2015-03-06T22:54:58Z","updated_at":"2016-03-24T03:24:25Z","pushed_at":"2016-03-25T19:58:46Z","git_url":"git://github.com/flutter/flutter.git","ssh_url":"git@github.com:flutter/flutter.git","clone_url":"https://github.com/flutter/flutter.git","svn_url":"https://github.com/flutter/flutter","homepage":"http://flutter.io","size":108194,"stargazers_count":2720,"watchers_count":2720,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":271,"mirror_url":null,"open_issues_count":768,"forks":271,"open_issues":768,"watchers":2720,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter/flutter/pulls/2907"},"html":{"href":"https://github.com/flutter/flutter/pull/2907"},"issue":{"href":"https://api.github.com/repos/flutter/flutter/issues/2907"},"comments":{"href":"https://api.github.com/repos/flutter/flutter/issues/2907/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter/flutter/pulls/2907/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter/flutter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter/flutter/pulls/2907/commits"},"statuses":{"href":"https://api.github.com/repos/flutter/flutter/statuses/bed7e700cc804e9ec3a3024382da7ad33bb280c7"}}}}