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

Version mismatch with flutter sdk and equatable library. #1765

Open
hsynpsdmr opened this issue Nov 1, 2024 · 0 comments
Open

Version mismatch with flutter sdk and equatable library. #1765

hsynpsdmr opened this issue Nov 1, 2024 · 0 comments

Comments

@hsynpsdmr
Copy link

hsynpsdmr commented Nov 1, 2024

The versions I used in my project are below.

I am using the latest version of the fl_chart library "fl_chart: ^0.69.0" in my project, but when adding it, I get the warning below because of the "equatable: ^2.0.5" library in it.

Resolving dependencies...
Because no versions of equatable match 2.0.5 and no versions of equatable match >2.0.5 <3.0.0, equatable ^2.0.5 is forbidden.
So, because barsoft_management depends on fl_chart ^0.69.0 which depends on equatable ^2.0.5, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on fl_chart: flutter pub add fl_chart:^0.55.2
exit code 1

According to the warning, I update the version and add "fl_chart: ^0.55.2". There is no problem while adding it, but when I run the project, I get the error below.

***/AppData/Local/Pub/Cache/hosted/pub.dev/fl_chart-0.55.2/lib/src/utils/utils.dart:257:20: Error: Member not found: 'MediaQuery.boldTextOverride'.
    if (MediaQuery.boldTextOverride(context)) {
                   ^^^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

If anyone can help me with this issue, thanks in advance.

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.26100.2033], locale tr-TR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.95.1)
[√] Connected device (5 available)
[√] Network resources

• No issues found!

Flutter 3.24.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 603104015d (8 days ago) • 2024-10-24 08:01:25 -0700
Engine • revision db49896cf2
Tools • Dart 3.5.4 • DevTools 2.37.3

distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip

#UPDATE#
I downgraded the Flutter and Dart versions. It works fine in the versions below.
3.24.0Flutter SDK
3.5.0 (Flutter)Dart SDK

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

No branches or pull requests

1 participant