imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.83k stars 1.77k forks source link

Member not found: 'MediaQuery.boldTextOverride' #1719

Open Yeyen09 opened 3 months ago

Yeyen09 commented 3 months ago

/C:/Users/LENOVO/AppData/Local/Pub/Cache/ hosted/pub.dev/fl_chart-0.40.6/lib/src/ut ils/utils.dart:258:18: Error: Member not found: 'MediaQuery.boldTextOverride'.
Waiting for connection from debug service if (MediaQuery.boldTextOverride(context)) { Waiting for connection from debug service ^^^^^^^^^^^^^^^^
Waiting for connection from debug service on Chrome... 16.3s Failed to compile application.

neiljaywarner commented 2 months ago

@Yeyen09 what flutter version please? (I got this too)

prajwalmj07 commented 2 months ago

try "flutter pub upgrade --major-versions" and then "dart fix" command

Abhay-Shankur commented 2 months ago

I have been facing Same issue, as since it was working fine few days ago.

duyo-son commented 2 months ago

It's time to upgrade fl_chart, which will necessitate a migration process.

Abhay-Shankur commented 2 months ago

i tried it too, but still it refers to old version of fl_chart,... @duyo-son

duyo-son commented 2 months ago

You need to set fl_chart: ^0.68.0 in your pubspec.yaml file, then run flutter clean and flutter pub get.

and Code Migration https://github.com/imaNNeo/fl_chart/tree/main/repo_files/documentations/migration_guides