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

Error: The setter 'textScaler' isn't defined for the class 'RenderScatterChart'. #1509

Closed
hamzakircicek opened this issue Nov 27, 2023 · 6 comments
Labels
enhancement New feature or request Fundamental

Comments

@hamzakircicek
Copy link

I'm using 3.16.0 version. I have this issue.

@techouse
Copy link

techouse commented Nov 27, 2023

I get something simlar with Flutter v3.13.9.

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.

I assume TextScaler only became available in 3.16.0

@SaqibWani273
Copy link

I was having the similar issue. I then upgraded flutter using flutter upgrade and my issue got resolved.

@techouse
Copy link

techouse commented Nov 27, 2023

@imaNNeo a Flutter/Dart SDK version constraint should probably be added to 0.65.0 to avoid this issue, i.e.

environment:
  sdk: ^3.2.0
  flutter: ^3.16.0

@ishanSiterecon
Copy link

I am facing a similar issue, I tried a custom widget in Flutterflow. I was using the "import 'package:fl_chart/fl_chart.dart';" package and it worked fine but since yesterday or so, I have been facing issues in deploying the same custom widget which worked earlier.

errors:
"bar_chart_renderer.dart:42:5: Error: Type 'TextScaler' not found.
TextScaler textScaler,"
"line_chart_renderer.dart:75:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {"

"radar_chart_renderer.dart:74:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {"

It seems like a library dependency issue because it is trying to search textScaler in even charts I am not using like radar. Also, it was working earlier for me. I am using Flutter 3.17.7 Flutterflow v4.0 (above suggestion did not helped for me)

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 1, 2023

@imaNNeo a Flutter/Dart SDK version constraint should probably be added to 0.65.0 to avoid this issue, i.e.

environment:
  sdk: ^3.2.0
  flutter: ^3.16.0

You're right. I forgot to do that.
Sorry about that guys, please downgrade your fl_chart version to the previous version, or upgrade your flutter to the latest version to use the latest fl_chart version.

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 25, 2023

Fixed in the 0.66.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fundamental
Projects
None yet
Development

No branches or pull requests

5 participants