imaNNeo / imaNNeo/fl_chart

Version mismatch with flutter sdk and equatable library.

Open
#1,765 1 comment 0 reactions 0 assignees View on GitHub
Fundamental question
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

Research direction

Reproduce the dependency resolution with fl_chart ^0.69.0 and equatable ^2.0.5 using Flutter 3.24.4, then run the downgraded fl_chart ^0.55.2 build to confirm the MediaQuery.boldTextOverride error. Compare the reported Flutter 3.24.0 and Dart 3.5.0 combination; done means documenting or validating a compatible version combination without either failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.