-
I recently published a package to pub.dev. Overall I'm pretty happy with the generated pages for it, but there are a couple of small tweaks I'd like to make:
I know I could rearrange the source code of my library to put everything in a single file, but that feels like the wrong solution. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If you have a
You can also put |
Beta Was this translation helpful? Give feedback.
-
Ok, that's good to know, thanks!
Aah, I see. I have a |
Beta Was this translation helpful? Give feedback.
-
I put together a script to generate an I initially tried just running it in CI before publish, with the output .gitignore'd, but apparently |
Beta Was this translation helpful? Give feedback.
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.