Calculates on this device. File exports run online.
Flutter Pubspec Validator
Paste or open pubspec.yaml to find mistakes before flutter pub get does: an invalid package name, a version that is not semantic, npm-style constraints such as ~1.2.0, wrong dependency sources, and asset or font entries that the flutter tool cannot use. Everything is checked in your browser.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Check.
Your result
How it was worked out
How to check a pubspec
- Choose A pubspec.yaml file and paste the file, or open it.
- Press Check. Errors come first, each with its line and field.
- The dependencies table says what each constraint allows (^1.2.2 allows >=1.2.2 <2.0.0).
- To check that every asset and font file is really in your project, choose a ZIP of the project in the box below.
What is checked
- name: lower-case letters, digits and _, not starting with a digit, not a reserved word of Dart.
- version: three numbers with an optional -prerelease and +build (the build number of Android and iOS).
- environment: sdk: needed, with a lower bound of at least 2.12.0 (null safety, which Dart 3 requires).
- Dependencies: pub constraints (^, >=, >, <=, <, any; no ~, x or ||), one source each (sdk: flutter, path, git, hosted), no package depending on itself, none listed twice.
- flutter: true or false for uses-material-design and generate; asset paths inside the project; font weights 100 to 900 and styles normal or italic.
- Publishing: description length, http(s) addresses, at most 5 topics and 10 screenshots.
Worked example
intl: ~0.19.0 is an error, because pub has no ~ ranges: write ^0.19.0, which allows >=0.19.0 <0.20.0 (for 0.x versions the minor number is the breaking one).
Limits you should know
- The page reads the text only: it does not ask pub.dev which versions exist or resolve the dependencies.
- Folders in assets: hold only the files directly inside them; the page says so, and the box below checks real folders.
- Flavors, transformers and deferred components are listed as written, not applied.
Privacy
The pubspec is checked in your browser. Only the files you choose in the box below (and, if you tick it, the pubspec typed above) are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.