Skip to content

fix(connectivity_plus): correct minimum Flutter version to match Dart SDK constraint#3877

Closed
rumitvn wants to merge 1 commit into
fluttercommunity:mainfrom
rumitvn:fix/connectivity-plus-flutter-floor
Closed

fix(connectivity_plus): correct minimum Flutter version to match Dart SDK constraint#3877
rumitvn wants to merge 1 commit into
fluttercommunity:mainfrom
rumitvn:fix/connectivity-plus-flutter-floor

Conversation

@rumitvn

@rumitvn rumitvn commented Jun 15, 2026

Copy link
Copy Markdown

While testing the local build environment for connectivity_plus I hit the same mismatch reported in #3866. The package declares:

environment:
  sdk: ">=3.2.0 <4.0.0"
  flutter: ">=3.7.0"

But Dart 3.2.0 first shipped with Flutter 3.16.0 — Flutter 3.7.0 bundles Dart 2.19. So pinning the documented minimum Flutter version fails the SDK constraint:

SDK Version : 3.7.0 has Dart SDK 2.19.0 does not meet the project constraints of >=3.2.0 <4.0.0.

This bumps the Flutter floor to 3.16.0 so it matches the Dart SDK constraint that is already required. No real configuration is dropped: there is no Flutter release between 3.7 and 3.16 that ships Dart >=3.2, so nobody could actually build against the old floor anyway. I also updated the stale comment (it referenced the long-satisfied sharedDarwinSource 3.7 requirement).

Scoped to connectivity_plus, which is the package the issue demonstrates and the only one whose stated Flutter floor admits a real release that violates its Dart constraint — the sibling packages already pair their floors correctly. Per CONTRIBUTING I left the version and CHANGELOG for the maintainers.

Closes #3866

… SDK constraint

The package requires Dart >=3.2.0, which first shipped with Flutter 3.16.0,
but declared flutter: >=3.7.0 (Flutter 3.7 ships Dart 2.19). Pinning the
documented minimum Flutter version therefore fails the SDK constraint. Bump
the Flutter floor to 3.16.0 to match reality.
@rumitvn rumitvn closed this Jun 15, 2026
@rumitvn rumitvn deleted the fix/connectivity-plus-flutter-floor branch June 15, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Fix mismatch between Dart and Flutter minimum versions across packages

1 participant