You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the Flutter 2.0.0 release it was determined that Flutter did not follow semantic versioning, and for this reason the upper-bound SDK constraint on Flutter should be ignored.
Hence,
name: mypkgenvironment:
sdk: ^3.0.0 # This is the Dart SDK constraintflutter: ^3.20.0 # This is the Flutter SDK constraint
is currently re-interpreted as:
name: mypkgenvironment:
sdk: '>=3.0.0 <4.0.0'# This is just expansion of the ^-constraint syntaxflutter: '>=3.20.0'# This is ^-constraint syntax + removal of upper-bound constraint.
Avoiding this re-interpretation of the Flutter SDK constraint would make it more consistent with the Dart SDK constraint. And in the scenarios where these SDK constraints are useful, it would allow package authors / application developers to use them.
Do note that when Flutter 4 is released, we might then have to do a trick similar to what we did around Dart 3, where we say that Flutter 4 still supports packages that have an upper-bound of <4.0.0 (but not packages that have <3.999.0).
To avoid compatibility issues we propose that we re-introduce the Flutter SDK constraint upper-bound by, either:
(A) Letting it take effect for upper-bounds greater than the next Flutter version (3.24), OR,
(B) Letting it take effect after language-version 3.5 (inferred from Dart SDK constraint).
The text was updated successfully, but these errors were encountered:
At the Flutter 2.0.0 release it was determined that Flutter did not follow semantic versioning, and for this reason the upper-bound SDK constraint on Flutter should be ignored.
Hence,
is currently re-interpreted as:
Avoiding this re-interpretation of the Flutter SDK constraint would make it more consistent with the Dart SDK constraint. And in the scenarios where these SDK constraints are useful, it would allow package authors / application developers to use them.
Do note that when Flutter 4 is released, we might then have to do a trick similar to what we did around Dart 3, where we say that Flutter 4 still supports packages that have an upper-bound of
<4.0.0
(but not packages that have<3.999.0
).To avoid compatibility issues we propose that we re-introduce the Flutter SDK constraint upper-bound by, either:
The text was updated successfully, but these errors were encountered: