The flutter pub publish --dry-run command does not publish the package. It just tells you which files will be published and whether there are warnings or errors. This is a good starting point when you decide to publish a package to pub.dev.
A package published in pub.dev must contain an open source license. The Flutter team recommends the BSD license, which basically grants all kinds of use without attribution, and releases the author from any liability. It's so short that you can actually read it (which is a miracle in itself).
The LICENSE file in the package project is where the text of the license is placed.
Another extremely important file for your packages is the README.md file. This is the main content that users will see on your package home page. It uses the Markdown format, which is a markup language that you can use to format plain text documents.
In the example shown above, we used three formatting options:
- # area: The single # is a level 1 heading (the...