Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flutter version constraint upper bound note #5375

Merged
merged 10 commits into from Jan 13, 2024
11 changes: 9 additions & 2 deletions src/tools/pub/pubspec.md
Expand Up @@ -514,8 +514,15 @@ environment:

A Flutter SDK constraint is satisfied only if pub is running in the
context of the `flutter` executable, and the Flutter SDK's
`version` file matches the given version constraint. Otherwise,
the package will not be selected.
`version` file meets the version constraint's lower bound. Otherwise,
the package won't be selected.

{{site.alert.note}}
Note: The Flutter SDK only enforces the lower bound of the flutter constraint.
To learn more, check out
[issue #95472](https://github.com/flutter/flutter/issues/95472)
in the `flutter/flutter` repository.
{{site.alert.end}}

To publish a package with a Flutter SDK constraint,
you must specify a Dart SDK constraint with a minimum version of
Expand Down