Skip to content

Display the correct library imports for all packages on pub.dartlang.org #5755

Closed
@nex3

Description

@nex3

Currently, the package view pub.dartlang.org always displays the example import as 'import "package:packagename/packagename.dart"'. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions