{"action":"created","comment":{"url":"https://api.github.com/repos/flutter/samples/pulls/comments/220369752","pull_request_review_id":158763362,"id":220369752,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDM2OTc1Mg==","diff_hunk":"@@ -21,45 +21,51 @@ import 'model/product.dart';\n \n class CategoryMenuPage extends StatelessWidget {\n   final List<Category> _categories = Category.values;\n+  final VoidCallback onCategoryTap;\n \n   const CategoryMenuPage({\n     Key key,\n-  });\n+    this.onCategoryTap,\n+  }) : super(key: key);\n \n   Widget _buildCategory(Category category, BuildContext context) {\n     final categoryString =\n-        category.toString().replaceAll('Category.', '').toUpperCase();\n+    category.toString().replaceAll('Category.', '').toUpperCase();\n     final ThemeData theme = Theme.of(context);\n     return ScopedModelDescendant<AppStateModel>(\n       builder: (context, child, model) => GestureDetector(\n-            onTap: () => model.setCategory(category),\n-            child: model.selectedCategory == category\n-                ? Column(\n-                    children: <Widget>[\n-                      SizedBox(height: 16.0),\n-                      Text(\n-                        categoryString,\n-                        style: theme.textTheme.body2,\n-                        textAlign: TextAlign.center,\n-                      ),\n-                      SizedBox(height: 14.0),\n-                      Container(\n-                        width: 70.0,\n-                        height: 2.0,\n-                        color: kShrinePink400,\n-                      ),\n-                    ],\n-                  )\n-                : Padding(\n-                    padding: EdgeInsets.symmetric(vertical: 16.0),\n-                    child: Text(\n-                      categoryString,\n-                      style: theme.textTheme.body2\n-                          .copyWith(color: kShrineBrown900.withAlpha(153)),\n-                      textAlign: TextAlign.center,\n-                    ),\n-                  ),\n+        onTap: () {\n+          model.setCategory(category);\n+          if (onCategoryTap != null)\n+            onCategoryTap();\n+        },\n+        child: model.selectedCategory == category\n+            ? Column(\n+          children: <Widget>[","path":"shrine/lib/category_menu_page.dart","position":53,"original_position":53,"commit_id":"ca40ca662a76fce9994943ff2499f2f44c21d85e","original_commit_id":"ca40ca662a76fce9994943ff2499f2f44c21d85e","user":{"login":"willlarche","id":1271525,"node_id":"MDQ6VXNlcjEyNzE1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1271525?v=4","gravatar_id":"","url":"https://api.github.com/users/willlarche","html_url":"https://github.com/willlarche","followers_url":"https://api.github.com/users/willlarche/followers","following_url":"https://api.github.com/users/willlarche/following{/other_user}","gists_url":"https://api.github.com/users/willlarche/gists{/gist_id}","starred_url":"https://api.github.com/users/willlarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willlarche/subscriptions","organizations_url":"https://api.github.com/users/willlarche/orgs","repos_url":"https://api.github.com/users/willlarche/repos","events_url":"https://api.github.com/users/willlarche/events{/privacy}","received_events_url":"https://api.github.com/users/willlarche/received_events","type":"User","site_admin":false},"body":"No but happy to run it.","created_at":"2018-09-25T22:00:22Z","updated_at":"2018-09-25T22:00:22Z","html_url":"https://github.com/flutter/samples/pull/18#discussion_r220369752","pull_request_url":"https://api.github.com/repos/flutter/samples/pulls/18","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/flutter/samples/pulls/comments/220369752"},"html":{"href":"https://github.com/flutter/samples/pull/18#discussion_r220369752"},"pull_request":{"href":"https://api.github.com/repos/flutter/samples/pulls/18"}},"in_reply_to_id":220359711},"pull_request":{"url":"https://api.github.com/repos/flutter/samples/pulls/18","id":218111811,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTExODEx","html_url":"https://github.com/flutter/samples/pull/18","diff_url":"https://github.com/flutter/samples/pull/18.diff","patch_url":"https://github.com/flutter/samples/pull/18.patch","issue_url":"https://api.github.com/repos/flutter/samples/issues/18","number":18,"state":"open","locked":false,"title":"[Shrine] New Shrine with expanding cart bottom sheet from experimenal","user":{"login":"willlarche","id":1271525,"node_id":"MDQ6VXNlcjEyNzE1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1271525?v=4","gravatar_id":"","url":"https://api.github.com/users/willlarche","html_url":"https://github.com/willlarche","followers_url":"https://api.github.com/users/willlarche/followers","following_url":"https://api.github.com/users/willlarche/following{/other_user}","gists_url":"https://api.github.com/users/willlarche/gists{/gist_id}","starred_url":"https://api.github.com/users/willlarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willlarche/subscriptions","organizations_url":"https://api.github.com/users/willlarche/orgs","repos_url":"https://api.github.com/users/willlarche/repos","events_url":"https://api.github.com/users/willlarche/events{/privacy}","received_events_url":"https://api.github.com/users/willlarche/received_events","type":"User","site_admin":false},"body":"Written by @michdud\r\n","created_at":"2018-09-25T20:38:55Z","updated_at":"2018-09-25T22:00:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ee6e59c7fcb2bdc542a11392e86e1d161445070","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flutter/samples/pulls/18/commits","review_comments_url":"https://api.github.com/repos/flutter/samples/pulls/18/comments","review_comment_url":"https://api.github.com/repos/flutter/samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter/samples/issues/18/comments","statuses_url":"https://api.github.com/repos/flutter/samples/statuses/ca40ca662a76fce9994943ff2499f2f44c21d85e","head":{"label":"willlarche:feature-expandingBottomSheet","ref":"feature-expandingBottomSheet","sha":"ca40ca662a76fce9994943ff2499f2f44c21d85e","user":{"login":"willlarche","id":1271525,"node_id":"MDQ6VXNlcjEyNzE1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1271525?v=4","gravatar_id":"","url":"https://api.github.com/users/willlarche","html_url":"https://github.com/willlarche","followers_url":"https://api.github.com/users/willlarche/followers","following_url":"https://api.github.com/users/willlarche/following{/other_user}","gists_url":"https://api.github.com/users/willlarche/gists{/gist_id}","starred_url":"https://api.github.com/users/willlarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willlarche/subscriptions","organizations_url":"https://api.github.com/users/willlarche/orgs","repos_url":"https://api.github.com/users/willlarche/repos","events_url":"https://api.github.com/users/willlarche/events{/privacy}","received_events_url":"https://api.github.com/users/willlarche/received_events","type":"User","site_admin":false},"repo":{"id":150326278,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMjYyNzg=","name":"samples","full_name":"willlarche/samples","private":false,"owner":{"login":"willlarche","id":1271525,"node_id":"MDQ6VXNlcjEyNzE1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1271525?v=4","gravatar_id":"","url":"https://api.github.com/users/willlarche","html_url":"https://github.com/willlarche","followers_url":"https://api.github.com/users/willlarche/followers","following_url":"https://api.github.com/users/willlarche/following{/other_user}","gists_url":"https://api.github.com/users/willlarche/gists{/gist_id}","starred_url":"https://api.github.com/users/willlarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willlarche/subscriptions","organizations_url":"https://api.github.com/users/willlarche/orgs","repos_url":"https://api.github.com/users/willlarche/repos","events_url":"https://api.github.com/users/willlarche/events{/privacy}","received_events_url":"https://api.github.com/users/willlarche/received_events","type":"User","site_admin":false},"html_url":"https://github.com/willlarche/samples","description":"A collection of Flutter examples and demos.","fork":true,"url":"https://api.github.com/repos/willlarche/samples","forks_url":"https://api.github.com/repos/willlarche/samples/forks","keys_url":"https://api.github.com/repos/willlarche/samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willlarche/samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willlarche/samples/teams","hooks_url":"https://api.github.com/repos/willlarche/samples/hooks","issue_events_url":"https://api.github.com/repos/willlarche/samples/issues/events{/number}","events_url":"https://api.github.com/repos/willlarche/samples/events","assignees_url":"https://api.github.com/repos/willlarche/samples/assignees{/user}","branches_url":"https://api.github.com/repos/willlarche/samples/branches{/branch}","tags_url":"https://api.github.com/repos/willlarche/samples/tags","blobs_url":"https://api.github.com/repos/willlarche/samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willlarche/samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willlarche/samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/willlarche/samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willlarche/samples/statuses/{sha}","languages_url":"https://api.github.com/repos/willlarche/samples/languages","stargazers_url":"https://api.github.com/repos/willlarche/samples/stargazers","contributors_url":"https://api.github.com/repos/willlarche/samples/contributors","subscribers_url":"https://api.github.com/repos/willlarche/samples/subscribers","subscription_url":"https://api.github.com/repos/willlarche/samples/subscription","commits_url":"https://api.github.com/repos/willlarche/samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/willlarche/samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/willlarche/samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/willlarche/samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/willlarche/samples/contents/{+path}","compare_url":"https://api.github.com/repos/willlarche/samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willlarche/samples/merges","archive_url":"https://api.github.com/repos/willlarche/samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willlarche/samples/downloads","issues_url":"https://api.github.com/repos/willlarche/samples/issues{/number}","pulls_url":"https://api.github.com/repos/willlarche/samples/pulls{/number}","milestones_url":"https://api.github.com/repos/willlarche/samples/milestones{/number}","notifications_url":"https://api.github.com/repos/willlarche/samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willlarche/samples/labels{/name}","releases_url":"https://api.github.com/repos/willlarche/samples/releases{/id}","deployments_url":"https://api.github.com/repos/willlarche/samples/deployments","created_at":"2018-09-25T20:37:20Z","updated_at":"2018-09-25T20:37:23Z","pushed_at":"2018-09-25T20:50:12Z","git_url":"git://github.com/willlarche/samples.git","ssh_url":"git@github.com:willlarche/samples.git","clone_url":"https://github.com/willlarche/samples.git","svn_url":"https://github.com/willlarche/samples","homepage":null,"size":1171,"stargazers_count":0,"watchers_count":0,"language":"Dart","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flutter:master","ref":"master","sha":"b5ce05e934f219718deff25a82cfd3a895c08177","user":{"login":"flutter","id":14101776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTAxNzc2","avatar_url":"https://avatars3.githubusercontent.com/u/14101776?v=4","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":136667574,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY2Njc1NzQ=","name":"samples","full_name":"flutter/samples","private":false,"owner":{"login":"flutter","id":14101776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTAxNzc2","avatar_url":"https://avatars3.githubusercontent.com/u/14101776?v=4","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},"html_url":"https://github.com/flutter/samples","description":"A collection of Flutter examples and demos.","fork":false,"url":"https://api.github.com/repos/flutter/samples","forks_url":"https://api.github.com/repos/flutter/samples/forks","keys_url":"https://api.github.com/repos/flutter/samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter/samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter/samples/teams","hooks_url":"https://api.github.com/repos/flutter/samples/hooks","issue_events_url":"https://api.github.com/repos/flutter/samples/issues/events{/number}","events_url":"https://api.github.com/repos/flutter/samples/events","assignees_url":"https://api.github.com/repos/flutter/samples/assignees{/user}","branches_url":"https://api.github.com/repos/flutter/samples/branches{/branch}","tags_url":"https://api.github.com/repos/flutter/samples/tags","blobs_url":"https://api.github.com/repos/flutter/samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter/samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter/samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter/samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter/samples/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter/samples/languages","stargazers_url":"https://api.github.com/repos/flutter/samples/stargazers","contributors_url":"https://api.github.com/repos/flutter/samples/contributors","subscribers_url":"https://api.github.com/repos/flutter/samples/subscribers","subscription_url":"https://api.github.com/repos/flutter/samples/subscription","commits_url":"https://api.github.com/repos/flutter/samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter/samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter/samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter/samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter/samples/contents/{+path}","compare_url":"https://api.github.com/repos/flutter/samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter/samples/merges","archive_url":"https://api.github.com/repos/flutter/samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter/samples/downloads","issues_url":"https://api.github.com/repos/flutter/samples/issues{/number}","pulls_url":"https://api.github.com/repos/flutter/samples/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter/samples/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter/samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter/samples/labels{/name}","releases_url":"https://api.github.com/repos/flutter/samples/releases{/id}","deployments_url":"https://api.github.com/repos/flutter/samples/deployments","created_at":"2018-06-08T21:28:03Z","updated_at":"2018-09-25T21:46:57Z","pushed_at":"2018-09-25T20:50:14Z","git_url":"git://github.com/flutter/samples.git","ssh_url":"git@github.com:flutter/samples.git","clone_url":"https://github.com/flutter/samples.git","svn_url":"https://github.com/flutter/samples","homepage":null,"size":1165,"stargazers_count":346,"watchers_count":346,"language":"Dart","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":29,"open_issues":1,"watchers":346,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter/samples/pulls/18"},"html":{"href":"https://github.com/flutter/samples/pull/18"},"issue":{"href":"https://api.github.com/repos/flutter/samples/issues/18"},"comments":{"href":"https://api.github.com/repos/flutter/samples/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter/samples/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter/samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter/samples/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/flutter/samples/statuses/ca40ca662a76fce9994943ff2499f2f44c21d85e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"willlarche"}}