{"action":"created","comment":{"url":"https://api.github.com/repos/chimple/tahiti/pulls/comments/206016950","pull_request_review_id":141394721,"id":206016950,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjAxNjk1MA==","diff_hunk":"@@ -0,0 +1,130 @@\n+import 'dart:async';\n+import 'dart:io';\n+import 'package:path_provider/path_provider.dart';\n+import 'package:flutter/material.dart';\n+import 'package:audio_recorder/audio_recorder.dart';\n+import 'package:audioplayer/audioplayer.dart';\n+\n+typedef void OnError(Exception exception);\n+\n+enum PlayerState { stopped, playing, paused }\n+\n+class Recorder extends StatefulWidget{\n+\n+  @override\n+  State<StatefulWidget> createState() => new RecorderState();\n+}\n+\n+class RecorderState extends State<Recorder>{\n+  Recording _recording = new Recording();\n+  AudioPlayer _audioPlayer;\n+  var _btnIcon = Icons.mic, _btnClr = Colors.white;\n+  var _playMusic = Icons.play_arrow, _playMusicColor = Colors.white;\n+  bool _isRecorded = false;\n+  bool _isRecording = false;\n+  Duration _duration;\n+  String _filePath = \"\";\n+\n+  PlayerState _playerState = PlayerState.stopped;\n+  get isPlaying => _playerState == PlayerState.playing;\n+  get isPaused => _playerState == PlayerState.paused;\n+\n+  @override\n+  void initState() {\n+    super.initState();\n+    _initAudioPlayer();\n+  }\n+\n+  void _initAudioPlayer() {\n+    _audioPlayer = new AudioPlayer();\n+  }\n+\n+  @override\n+  void dispose() {\n+    super.dispose();\n+  }\n+\n+  @override\n+  Widget build(BuildContext context) {\n+    return Container(\n+      margin: new EdgeInsets.all(20.0),\n+          child: new Row(\n+          mainAxisAlignment: MainAxisAlignment.spaceAround,\n+          children: <Widget>[\n+        FloatingActionButton(onPressed: _isRecorded ?  _playaudio : _stopaudio, child: Icon(_playMusic, color: _playMusicColor,), ),\n+        FloatingActionButton(onPressed: _isRecording ? _stop : _start, child: Icon(_btnIcon, color: _btnClr,), ),\n+          ]),\n+    );\n+  }\n+\n+  _start() async {\n+    try {\n+      if (await AudioRecorder.hasPermissions) {\n+          String _path = \"recorder.m4a\";","path":"lib/recorder.dart","position":63,"original_position":63,"commit_id":"58482d6211254912bd70bfb322d9b9c71047ad5a","original_commit_id":"58482d6211254912bd70bfb322d9b9c71047ad5a","user":{"login":"talapadi","id":11287996,"node_id":"MDQ6VXNlcjExMjg3OTk2","avatar_url":"https://avatars0.githubusercontent.com/u/11287996?v=4","gravatar_id":"","url":"https://api.github.com/users/talapadi","html_url":"https://github.com/talapadi","followers_url":"https://api.github.com/users/talapadi/followers","following_url":"https://api.github.com/users/talapadi/following{/other_user}","gists_url":"https://api.github.com/users/talapadi/gists{/gist_id}","starred_url":"https://api.github.com/users/talapadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talapadi/subscriptions","organizations_url":"https://api.github.com/users/talapadi/orgs","repos_url":"https://api.github.com/users/talapadi/repos","events_url":"https://api.github.com/users/talapadi/events{/privacy}","received_events_url":"https://api.github.com/users/talapadi/received_events","type":"User","site_admin":false},"body":"these should not have _ since they are local variables","created_at":"2018-07-30T05:20:17Z","updated_at":"2018-07-30T05:21:32Z","html_url":"https://github.com/chimple/tahiti/pull/18#discussion_r206016950","pull_request_url":"https://api.github.com/repos/chimple/tahiti/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/comments/206016950"},"html":{"href":"https://github.com/chimple/tahiti/pull/18#discussion_r206016950"},"pull_request":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/chimple/tahiti/pulls/18","id":204376365,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0Mzc2MzY1","html_url":"https://github.com/chimple/tahiti/pull/18","diff_url":"https://github.com/chimple/tahiti/pull/18.diff","patch_url":"https://github.com/chimple/tahiti/pull/18.patch","issue_url":"https://api.github.com/repos/chimple/tahiti/issues/18","number":18,"state":"open","locked":false,"title":"Suhas","user":{"login":"suhas4090","id":35102923,"node_id":"MDQ6VXNlcjM1MTAyOTIz","avatar_url":"https://avatars1.githubusercontent.com/u/35102923?v=4","gravatar_id":"","url":"https://api.github.com/users/suhas4090","html_url":"https://github.com/suhas4090","followers_url":"https://api.github.com/users/suhas4090/followers","following_url":"https://api.github.com/users/suhas4090/following{/other_user}","gists_url":"https://api.github.com/users/suhas4090/gists{/gist_id}","starred_url":"https://api.github.com/users/suhas4090/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhas4090/subscriptions","organizations_url":"https://api.github.com/users/suhas4090/orgs","repos_url":"https://api.github.com/users/suhas4090/repos","events_url":"https://api.github.com/users/suhas4090/events{/privacy}","received_events_url":"https://api.github.com/users/suhas4090/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-27T09:22:58Z","updated_at":"2018-07-30T05:21:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1d661e18787a070028127542d78ca17b9be056b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chimple/tahiti/pulls/18/commits","review_comments_url":"https://api.github.com/repos/chimple/tahiti/pulls/18/comments","review_comment_url":"https://api.github.com/repos/chimple/tahiti/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chimple/tahiti/issues/18/comments","statuses_url":"https://api.github.com/repos/chimple/tahiti/statuses/58482d6211254912bd70bfb322d9b9c71047ad5a","head":{"label":"chimple:suhas","ref":"suhas","sha":"58482d6211254912bd70bfb322d9b9c71047ad5a","user":{"login":"chimple","id":11288006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4MDA2","avatar_url":"https://avatars3.githubusercontent.com/u/11288006?v=4","gravatar_id":"","url":"https://api.github.com/users/chimple","html_url":"https://github.com/chimple","followers_url":"https://api.github.com/users/chimple/followers","following_url":"https://api.github.com/users/chimple/following{/other_user}","gists_url":"https://api.github.com/users/chimple/gists{/gist_id}","starred_url":"https://api.github.com/users/chimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimple/subscriptions","organizations_url":"https://api.github.com/users/chimple/orgs","repos_url":"https://api.github.com/users/chimple/repos","events_url":"https://api.github.com/users/chimple/events{/privacy}","received_events_url":"https://api.github.com/users/chimple/received_events","type":"Organization","site_admin":false},"repo":{"id":142175427,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxNzU0Mjc=","name":"tahiti","full_name":"chimple/tahiti","owner":{"login":"chimple","id":11288006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4MDA2","avatar_url":"https://avatars3.githubusercontent.com/u/11288006?v=4","gravatar_id":"","url":"https://api.github.com/users/chimple","html_url":"https://github.com/chimple","followers_url":"https://api.github.com/users/chimple/followers","following_url":"https://api.github.com/users/chimple/following{/other_user}","gists_url":"https://api.github.com/users/chimple/gists{/gist_id}","starred_url":"https://api.github.com/users/chimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimple/subscriptions","organizations_url":"https://api.github.com/users/chimple/orgs","repos_url":"https://api.github.com/users/chimple/repos","events_url":"https://api.github.com/users/chimple/events{/privacy}","received_events_url":"https://api.github.com/users/chimple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chimple/tahiti","description":"A painting application using Flutter","fork":false,"url":"https://api.github.com/repos/chimple/tahiti","forks_url":"https://api.github.com/repos/chimple/tahiti/forks","keys_url":"https://api.github.com/repos/chimple/tahiti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chimple/tahiti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chimple/tahiti/teams","hooks_url":"https://api.github.com/repos/chimple/tahiti/hooks","issue_events_url":"https://api.github.com/repos/chimple/tahiti/issues/events{/number}","events_url":"https://api.github.com/repos/chimple/tahiti/events","assignees_url":"https://api.github.com/repos/chimple/tahiti/assignees{/user}","branches_url":"https://api.github.com/repos/chimple/tahiti/branches{/branch}","tags_url":"https://api.github.com/repos/chimple/tahiti/tags","blobs_url":"https://api.github.com/repos/chimple/tahiti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chimple/tahiti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chimple/tahiti/git/refs{/sha}","trees_url":"https://api.github.com/repos/chimple/tahiti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chimple/tahiti/statuses/{sha}","languages_url":"https://api.github.com/repos/chimple/tahiti/languages","stargazers_url":"https://api.github.com/repos/chimple/tahiti/stargazers","contributors_url":"https://api.github.com/repos/chimple/tahiti/contributors","subscribers_url":"https://api.github.com/repos/chimple/tahiti/subscribers","subscription_url":"https://api.github.com/repos/chimple/tahiti/subscription","commits_url":"https://api.github.com/repos/chimple/tahiti/commits{/sha}","git_commits_url":"https://api.github.com/repos/chimple/tahiti/git/commits{/sha}","comments_url":"https://api.github.com/repos/chimple/tahiti/comments{/number}","issue_comment_url":"https://api.github.com/repos/chimple/tahiti/issues/comments{/number}","contents_url":"https://api.github.com/repos/chimple/tahiti/contents/{+path}","compare_url":"https://api.github.com/repos/chimple/tahiti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chimple/tahiti/merges","archive_url":"https://api.github.com/repos/chimple/tahiti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chimple/tahiti/downloads","issues_url":"https://api.github.com/repos/chimple/tahiti/issues{/number}","pulls_url":"https://api.github.com/repos/chimple/tahiti/pulls{/number}","milestones_url":"https://api.github.com/repos/chimple/tahiti/milestones{/number}","notifications_url":"https://api.github.com/repos/chimple/tahiti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chimple/tahiti/labels{/name}","releases_url":"https://api.github.com/repos/chimple/tahiti/releases{/id}","deployments_url":"https://api.github.com/repos/chimple/tahiti/deployments","created_at":"2018-07-24T15:07:10Z","updated_at":"2018-07-27T05:33:13Z","pushed_at":"2018-07-30T05:17:50Z","git_url":"git://github.com/chimple/tahiti.git","ssh_url":"git@github.com:chimple/tahiti.git","clone_url":"https://github.com/chimple/tahiti.git","svn_url":"https://github.com/chimple/tahiti","homepage":null,"size":6220,"stargazers_count":1,"watchers_count":1,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"base":{"label":"chimple:master","ref":"master","sha":"6acab8920fe332feb3bfa8b82f2606b5c4f81611","user":{"login":"chimple","id":11288006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4MDA2","avatar_url":"https://avatars3.githubusercontent.com/u/11288006?v=4","gravatar_id":"","url":"https://api.github.com/users/chimple","html_url":"https://github.com/chimple","followers_url":"https://api.github.com/users/chimple/followers","following_url":"https://api.github.com/users/chimple/following{/other_user}","gists_url":"https://api.github.com/users/chimple/gists{/gist_id}","starred_url":"https://api.github.com/users/chimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimple/subscriptions","organizations_url":"https://api.github.com/users/chimple/orgs","repos_url":"https://api.github.com/users/chimple/repos","events_url":"https://api.github.com/users/chimple/events{/privacy}","received_events_url":"https://api.github.com/users/chimple/received_events","type":"Organization","site_admin":false},"repo":{"id":142175427,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxNzU0Mjc=","name":"tahiti","full_name":"chimple/tahiti","owner":{"login":"chimple","id":11288006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4MDA2","avatar_url":"https://avatars3.githubusercontent.com/u/11288006?v=4","gravatar_id":"","url":"https://api.github.com/users/chimple","html_url":"https://github.com/chimple","followers_url":"https://api.github.com/users/chimple/followers","following_url":"https://api.github.com/users/chimple/following{/other_user}","gists_url":"https://api.github.com/users/chimple/gists{/gist_id}","starred_url":"https://api.github.com/users/chimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimple/subscriptions","organizations_url":"https://api.github.com/users/chimple/orgs","repos_url":"https://api.github.com/users/chimple/repos","events_url":"https://api.github.com/users/chimple/events{/privacy}","received_events_url":"https://api.github.com/users/chimple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chimple/tahiti","description":"A painting application using Flutter","fork":false,"url":"https://api.github.com/repos/chimple/tahiti","forks_url":"https://api.github.com/repos/chimple/tahiti/forks","keys_url":"https://api.github.com/repos/chimple/tahiti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chimple/tahiti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chimple/tahiti/teams","hooks_url":"https://api.github.com/repos/chimple/tahiti/hooks","issue_events_url":"https://api.github.com/repos/chimple/tahiti/issues/events{/number}","events_url":"https://api.github.com/repos/chimple/tahiti/events","assignees_url":"https://api.github.com/repos/chimple/tahiti/assignees{/user}","branches_url":"https://api.github.com/repos/chimple/tahiti/branches{/branch}","tags_url":"https://api.github.com/repos/chimple/tahiti/tags","blobs_url":"https://api.github.com/repos/chimple/tahiti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chimple/tahiti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chimple/tahiti/git/refs{/sha}","trees_url":"https://api.github.com/repos/chimple/tahiti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chimple/tahiti/statuses/{sha}","languages_url":"https://api.github.com/repos/chimple/tahiti/languages","stargazers_url":"https://api.github.com/repos/chimple/tahiti/stargazers","contributors_url":"https://api.github.com/repos/chimple/tahiti/contributors","subscribers_url":"https://api.github.com/repos/chimple/tahiti/subscribers","subscription_url":"https://api.github.com/repos/chimple/tahiti/subscription","commits_url":"https://api.github.com/repos/chimple/tahiti/commits{/sha}","git_commits_url":"https://api.github.com/repos/chimple/tahiti/git/commits{/sha}","comments_url":"https://api.github.com/repos/chimple/tahiti/comments{/number}","issue_comment_url":"https://api.github.com/repos/chimple/tahiti/issues/comments{/number}","contents_url":"https://api.github.com/repos/chimple/tahiti/contents/{+path}","compare_url":"https://api.github.com/repos/chimple/tahiti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chimple/tahiti/merges","archive_url":"https://api.github.com/repos/chimple/tahiti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chimple/tahiti/downloads","issues_url":"https://api.github.com/repos/chimple/tahiti/issues{/number}","pulls_url":"https://api.github.com/repos/chimple/tahiti/pulls{/number}","milestones_url":"https://api.github.com/repos/chimple/tahiti/milestones{/number}","notifications_url":"https://api.github.com/repos/chimple/tahiti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chimple/tahiti/labels{/name}","releases_url":"https://api.github.com/repos/chimple/tahiti/releases{/id}","deployments_url":"https://api.github.com/repos/chimple/tahiti/deployments","created_at":"2018-07-24T15:07:10Z","updated_at":"2018-07-27T05:33:13Z","pushed_at":"2018-07-30T05:17:50Z","git_url":"git://github.com/chimple/tahiti.git","ssh_url":"git@github.com:chimple/tahiti.git","clone_url":"https://github.com/chimple/tahiti.git","svn_url":"https://github.com/chimple/tahiti","homepage":null,"size":6220,"stargazers_count":1,"watchers_count":1,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/18"},"html":{"href":"https://github.com/chimple/tahiti/pull/18"},"issue":{"href":"https://api.github.com/repos/chimple/tahiti/issues/18"},"comments":{"href":"https://api.github.com/repos/chimple/tahiti/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chimple/tahiti/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/chimple/tahiti/statuses/58482d6211254912bd70bfb322d9b9c71047ad5a"}},"author_association":"NONE"}}
{"actor":{"display_login":"talapadi"}}