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.87k stars 1.78k forks source link

TextScaler' not found #1514

Closed mauricev closed 11 months ago

mauricev commented 11 months ago

When building on iOS with 0.65.0, I get

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:42:5: Error: Type 'TextScaler' not found.

0.64.0 doesn’t have this error.

anilkumar416 commented 11 months ago

facing the same issue

../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:50:5: Error: Type 'TextScaler' not found. TextScaler textScaler, ^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:75:3: Error: Type 'TextScaler' not found. TextScaler get textScaler => _textScaler; ^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:76:3: Error: Type 'TextScaler' not found. TextScaler _textScaler; ^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:78:18: Error: Type 'TextScaler' not found. set textScaler(TextScaler value) { ^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:27:32: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'.

anilkumar416 commented 11 months ago

the above issue is not happening in 0.64.0 version

charlescyt commented 11 months ago

Duplicate of #1509

TextScaler was introduced in Flutter 3.16.0. Either upgrade you Flutter SDK to 3.16.0 up or use the previous 0.64.0 version.

danbil24 commented 7 months ago

../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:50:5: Error: Type 'TextScaler' not found. I am facing the same issue with version 0.65.0, but it works fine in version 0.64.0.