pubspec.yaml
pubspecs, the format used by Dart's dependency manager
| Type | object |
|---|---|
| File match |
pubspec.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/pubspec-yaml/latest.json |
| Source | https://www.schemastore.org/pubspec.json |
Validate with Lintel
npx @lintel/lintel check
Dart Pubspec file
Properties
The name of this package. The name is how other packages refer to yours, should you publish it. Learn more
A short, plain text sales-pitch for your package in English. Learn More
The optional repository field should contain the URL for your package's source code repository. Learn more
A URL for the package's issue tracker, where existing bugs can be viewed and new bugs can be filed. Learn more
A site that hosts documentation, separate from the main homepage and from the Pub-generated API reference. Learn more
A package may expose one or more of its scripts as executables that can be run directly from the command line. Learn more
The platforms field specifies which platforms the package supports. Learn more
6 nested properties
Can be used to specify a custom pub package server to publish. Specify none to prevent a package from being published. Learn more.
List of URLs where users can sponsor development of the package. Learn more.
Gitignore style list of files where pub will not search for accidentally exposed keys. Learn more.
Showcase widgets or other visual elements using screenshots displayed that will be displayed on pub.dev. Learn more.
Pub.dev displays the topics on the package page as well as in the search results. See the list of available topics Learn more.
A list of security advisory identifiers that are ignored for this package. See pub.dev Security Advisories Learn more.
Flutter-specific metadata. Learn more.
5 nested properties
Whether this project uses the Material Design package. Required if you use the Material icon font
Enables generation of localized strings from arb files
A list of directories or files that contain images or other assets. Learn more.
A list of font families and their fonts. Learn more.
Shaders, in the form of GLSL files with the .frag extension. The Flutter command-line tool compiles the shader to its appropriate backend format, and generates its necessary runtime metadata. The compiled shader is then included in the application just like an asset. Learn more
Definitions
Version range of the package or SDK to use