Skip to content

Is there a way to control the contents of the Installing and Example tabs on a pub.dev package's page? #8226

Answered by isoos
nfriedly asked this question in Q&A
Discussion options

You must be logged in to vote

On the Installing page, the instructions say to import every top-level file in my lib/ directory, when really only one is needed because it re-exports the contents of the others. Can I change that without changing my codebase? (It does not instruct users to import my lib/src/ files, at least.)

If you have a lib/<package_name>.dart, we treat it as the primary library, and we will list only that (and we use only that as an entry point during static analysis). lib/src/ is treated as package internals and are not exposed here.

On the Example page, it's showing the main.dart file from my example app, which is basically just imports and "fluff". Nothing in it is particularly relevant for usi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nfriedly
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants