{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/187","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/187/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/187/events","html_url":"https://github.com/dart-lang/pub/issues/187","id":85642104,"number":187,"title":"Display the correct library imports for all packages on pub.dartlang.org","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-05T22:00:37Z","updated_at":"2015-06-05T22:00:38Z","closed_at":"2015-06-05T22:00:38Z","body":"<a href=\"https://github.com/nex3\"><img src=\"https://avatars.githubusercontent.com/u/188?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [nex3](https://github.com/nex3)**\n_Originally opened as dart-lang/sdk#5755_\n\n----\n\nCurrently, the package view pub.dartlang.org always displays the example import as 'import &quot;package:packagename/packagename.dart&quot;'. Some packages don't have a library with the same name as the package, though, and for those packages this import example will fail. We should display one or more valid imports for these packages instead, or at least an import string that has an obvious placeholder."}}