Skip to content

Update connectivity_plus to ^7.0.0 to resolve dependency conflicts #1505

@MohamedGawdat

Description

@MohamedGawdat

Problem

The current version of connectivity_plus (^6.1.3) is causing significant dependency conflicts with other core libraries in the Flutter ecosystem. Multiple users and projects are experiencing version resolution failures when trying to use graphql_flutter alongside other popular
Flutter packages.

Root Cause

connectivity_plus ^6.x has compatibility issues with:

  • Updated Flutter SDK versions
  • Other networking and state management libraries
  • Core Flutter packages that have moved to newer versions

Solution

Update connectivity_plus from ^6.1.3 to ^7.0.0, which includes:

  • Better compatibility with Flutter 3.x
  • Resolved conflicts with other popular packages
  • Improved stability and performance

Additional Updates Required

To maintain compatibility, the following dependencies also need updates:

  • graphql: ^5.2.0 → ^5.2.2
  • gql_exec: ^1.0.0 → ^1.0.0+1
  • path_provider: ^2.0.1 → ^2.1.5
  • hive_ce: ^2.11.0 → ^2.13.2
  • plugin_platform_interface: ^2.0.0 → ^2.1.8
  • meta: adjusted to ^1.15.0 for flutter_test compatibility

Impact

  • ✅ Resolves dependency conflicts affecting multiple Flutter projects
  • ✅ Improves compatibility with latest Flutter SDK
  • ✅ Maintains backward compatibility for existing users
  • ✅ Enables projects to use latest versions of popular Flutter packages

Testing

  • All dependencies resolve successfully with flutter pub get
  • No breaking changes to existing API
  • Maintains compatibility with existing codebase

This is a critical update for the library's ecosystem compatibility.
Related PR: #1504

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs encouragedPRs are welcome if stakeholders want to take ownership

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions