{"action":"created","comment":{"url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/comments/172580872","pull_request_review_id":101621567,"id":172580872,"diff_hunk":"@@ -0,0 +1,167 @@\n+/*\n+ * Copyright 2018 The Chromium Authors. All rights reserved.\n+ * Use of this source code is governed by a BSD-style license that can be\n+ * found in the LICENSE file.\n+ */\n+package io.flutter.preview;\n+\n+import com.google.gson.JsonElement;\n+import com.google.gson.JsonObject;\n+import org.dartlang.analysis.server.protocol.FlutterOutline;\n+\n+import javax.swing.*;\n+import java.awt.*;\n+import java.awt.event.MouseAdapter;\n+import java.awt.event.MouseEvent;\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+// TODO: have a way to tell the panel whether it's hidden or shown\n+\n+// TODO: we'll need to know whether the preview element is stateless widget or a state of a stateful\n+//       widget; for the 2nd case, we'll need to find the cooresponding stateful widget class\n+\n+// TODO: we want to preview anything in a state, stateful, or stateless class (not\n+//       just things contained in a build method)\n+\n+// TODO: we should be bolding stateful and stateless (and state) classes, not build() methods\n+//       or, show all elements of these classes with some additional emphasis (italic? background color?)\n+\n+public class PreviewArea {\n+  public static int BORDER_WITH = 5;\n+\n+  @SuppressWarnings(\"UseJBColor\")","path":"src/io/flutter/preview/PreviewArea.java","position":33,"original_position":33,"commit_id":"20cae8988b5e26330344cf8650e2e931de55bdd2","original_commit_id":"20cae8988b5e26330344cf8650e2e931de55bdd2","user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars0.githubusercontent.com/u/384794?v=4","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"body":"I don't know any existing code that uses large colorer panels, so there is nothing to copy colors from. I will leave it as is for now, maybe someone will want to experiment with colors for `Darcula`. Or we might get actual rendering (which might be also not dark).","created_at":"2018-03-06T16:40:41Z","updated_at":"2018-03-06T16:40:41Z","html_url":"https://github.com/flutter/flutter-intellij/pull/1882#discussion_r172580872","pull_request_url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/comments/172580872"},"html":{"href":"https://github.com/flutter/flutter-intellij/pull/1882#discussion_r172580872"},"pull_request":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882"}},"in_reply_to_id":172372757},"pull_request":{"url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882","id":173008601,"html_url":"https://github.com/flutter/flutter-intellij/pull/1882","diff_url":"https://github.com/flutter/flutter-intellij/pull/1882.diff","patch_url":"https://github.com/flutter/flutter-intellij/pull/1882.patch","issue_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/1882","number":1882,"state":"open","locked":false,"title":"Initial implementation of rendering in Flutter Outline.","user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars0.githubusercontent.com/u/384794?v=4","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"body":"@jacob314 ","created_at":"2018-03-05T22:43:31Z","updated_at":"2018-03-06T16:40:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cce19b83cd75878fcad525c4c0d6c225e926f2d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars0.githubusercontent.com/u/1269969?v=4","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":487496526,"url":"https://api.github.com/repos/flutter/flutter-intellij/labels/cla:%20yes","name":"cla: yes","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882/commits","review_comments_url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882/comments","review_comment_url":"https://api.github.com/repos/flutter/flutter-intellij/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/1882/comments","statuses_url":"https://api.github.com/repos/flutter/flutter-intellij/statuses/20cae8988b5e26330344cf8650e2e931de55bdd2","head":{"label":"scheglov:render-outline2","ref":"render-outline2","sha":"20cae8988b5e26330344cf8650e2e931de55bdd2","user":{"login":"scheglov","id":384794,"avatar_url":"https://avatars0.githubusercontent.com/u/384794?v=4","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"repo":{"id":117903053,"name":"flutter-intellij","full_name":"scheglov/flutter-intellij","owner":{"login":"scheglov","id":384794,"avatar_url":"https://avatars0.githubusercontent.com/u/384794?v=4","gravatar_id":"","url":"https://api.github.com/users/scheglov","html_url":"https://github.com/scheglov","followers_url":"https://api.github.com/users/scheglov/followers","following_url":"https://api.github.com/users/scheglov/following{/other_user}","gists_url":"https://api.github.com/users/scheglov/gists{/gist_id}","starred_url":"https://api.github.com/users/scheglov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheglov/subscriptions","organizations_url":"https://api.github.com/users/scheglov/orgs","repos_url":"https://api.github.com/users/scheglov/repos","events_url":"https://api.github.com/users/scheglov/events{/privacy}","received_events_url":"https://api.github.com/users/scheglov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scheglov/flutter-intellij","description":"Flutter makes it easy and fast to build beautiful mobile apps.","fork":true,"url":"https://api.github.com/repos/scheglov/flutter-intellij","forks_url":"https://api.github.com/repos/scheglov/flutter-intellij/forks","keys_url":"https://api.github.com/repos/scheglov/flutter-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scheglov/flutter-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scheglov/flutter-intellij/teams","hooks_url":"https://api.github.com/repos/scheglov/flutter-intellij/hooks","issue_events_url":"https://api.github.com/repos/scheglov/flutter-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/scheglov/flutter-intellij/events","assignees_url":"https://api.github.com/repos/scheglov/flutter-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/scheglov/flutter-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/scheglov/flutter-intellij/tags","blobs_url":"https://api.github.com/repos/scheglov/flutter-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scheglov/flutter-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scheglov/flutter-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/scheglov/flutter-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scheglov/flutter-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/scheglov/flutter-intellij/languages","stargazers_url":"https://api.github.com/repos/scheglov/flutter-intellij/stargazers","contributors_url":"https://api.github.com/repos/scheglov/flutter-intellij/contributors","subscribers_url":"https://api.github.com/repos/scheglov/flutter-intellij/subscribers","subscription_url":"https://api.github.com/repos/scheglov/flutter-intellij/subscription","commits_url":"https://api.github.com/repos/scheglov/flutter-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/scheglov/flutter-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/scheglov/flutter-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/scheglov/flutter-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/scheglov/flutter-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/scheglov/flutter-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scheglov/flutter-intellij/merges","archive_url":"https://api.github.com/repos/scheglov/flutter-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scheglov/flutter-intellij/downloads","issues_url":"https://api.github.com/repos/scheglov/flutter-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/scheglov/flutter-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/scheglov/flutter-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/scheglov/flutter-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scheglov/flutter-intellij/labels{/name}","releases_url":"https://api.github.com/repos/scheglov/flutter-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/scheglov/flutter-intellij/deployments","created_at":"2018-01-17T22:59:39Z","updated_at":"2018-01-17T22:59:42Z","pushed_at":"2018-03-05T22:53:21Z","git_url":"git://github.com/scheglov/flutter-intellij.git","ssh_url":"git@github.com:scheglov/flutter-intellij.git","clone_url":"https://github.com/scheglov/flutter-intellij.git","svn_url":"https://github.com/scheglov/flutter-intellij","homepage":"https://flutter.io/intellij-ide","size":14341,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flutter:master","ref":"master","sha":"79db70556aebad003bf766c0806153ab03ec7576","user":{"login":"flutter","id":14101776,"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":64172164,"name":"flutter-intellij","full_name":"flutter/flutter-intellij","owner":{"login":"flutter","id":14101776,"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},"private":false,"html_url":"https://github.com/flutter/flutter-intellij","description":"Flutter makes it easy and fast to build beautiful mobile apps.","fork":false,"url":"https://api.github.com/repos/flutter/flutter-intellij","forks_url":"https://api.github.com/repos/flutter/flutter-intellij/forks","keys_url":"https://api.github.com/repos/flutter/flutter-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter/flutter-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter/flutter-intellij/teams","hooks_url":"https://api.github.com/repos/flutter/flutter-intellij/hooks","issue_events_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/flutter/flutter-intellij/events","assignees_url":"https://api.github.com/repos/flutter/flutter-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/flutter/flutter-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/flutter/flutter-intellij/tags","blobs_url":"https://api.github.com/repos/flutter/flutter-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter/flutter-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter/flutter-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter/flutter-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter/flutter-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter/flutter-intellij/languages","stargazers_url":"https://api.github.com/repos/flutter/flutter-intellij/stargazers","contributors_url":"https://api.github.com/repos/flutter/flutter-intellij/contributors","subscribers_url":"https://api.github.com/repos/flutter/flutter-intellij/subscribers","subscription_url":"https://api.github.com/repos/flutter/flutter-intellij/subscription","commits_url":"https://api.github.com/repos/flutter/flutter-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter/flutter-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter/flutter-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter/flutter-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/flutter/flutter-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter/flutter-intellij/merges","archive_url":"https://api.github.com/repos/flutter/flutter-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter/flutter-intellij/downloads","issues_url":"https://api.github.com/repos/flutter/flutter-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/flutter/flutter-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter/flutter-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter/flutter-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter/flutter-intellij/labels{/name}","releases_url":"https://api.github.com/repos/flutter/flutter-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/flutter/flutter-intellij/deployments","created_at":"2016-07-25T22:31:03Z","updated_at":"2018-03-06T12:20:44Z","pushed_at":"2018-03-05T22:53:22Z","git_url":"git://github.com/flutter/flutter-intellij.git","ssh_url":"git@github.com:flutter/flutter-intellij.git","clone_url":"https://github.com/flutter/flutter-intellij.git","svn_url":"https://github.com/flutter/flutter-intellij","homepage":"https://flutter.io/using-ide/","size":14379,"stargazers_count":169,"watchers_count":169,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":175,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":28,"open_issues":175,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882"},"html":{"href":"https://github.com/flutter/flutter-intellij/pull/1882"},"issue":{"href":"https://api.github.com/repos/flutter/flutter-intellij/issues/1882"},"comments":{"href":"https://api.github.com/repos/flutter/flutter-intellij/issues/1882/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter/flutter-intellij/pulls/1882/commits"},"statuses":{"href":"https://api.github.com/repos/flutter/flutter-intellij/statuses/20cae8988b5e26330344cf8650e2e931de55bdd2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"scheglov"}}