Comments (4)
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.
from fl_chart.
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'.
- 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
MediaQuery.of(context).textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:38:45: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
..textScaler = MediaQuery.of(context).textScaler
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:50:5: Error: 'TextScaler' isn't a type.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:76:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_renderer.dart:78:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_painter.dart:141:11: Error: No named parameter with the name 'textScaler'.
textScaler: holder.textScaler,
^^^^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/scatter_chart/scatter_chart_painter.dart:236:7: Error: No named parameter with the name 'textScaler'.
textScaler: holder.textScaler,
^^^^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/base/base_chart/base_chart_painter.dart:31:9: Error: Type 'TextScaler' not found.
final TextScaler textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/base/base_chart/base_chart_painter.dart:31:9: Error: 'TextScaler' isn't a type.
final TextScaler textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_painter.dart:1018:9: Error: No named parameter with the name 'textScaler'.
textScaler: holder.textScaler,
^^^^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_painter.dart:370:7: Error: No named parameter with the name 'textScaler'.
textScaler: holder.textScaler,
^^^^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:46:5: Error: Type 'TextScaler' not found.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:71:3: Error: Type 'TextScaler' not found.
TextScaler get textScaler => _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:72:3: Error: Type 'TextScaler' not found.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:74:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:26:32: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
MediaQuery.of(context).textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:34:45: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
..textScaler = MediaQuery.of(context).textScaler
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:46:5: Error: 'TextScaler' isn't a type.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:72:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_renderer.dart:74:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/radar_chart/radar_chart_painter.dart:279:9: Error: The setter 'textScaler' isn't defined for the class 'TextPainter'. - 'TextPainter' is from 'package:flutter/src/painting/text_painter.dart' ('../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'textScaler'.
..textScaler = holder.textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:53:5: Error: Type 'TextScaler' not found.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:80:3: Error: Type 'TextScaler' not found.
TextScaler get textScaler => _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:81:3: Error: Type 'TextScaler' not found.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:83:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:29:32: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
MediaQuery.of(context).textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:37:45: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
..textScaler = MediaQuery.of(context).textScaler
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:53:5: Error: 'TextScaler' isn't a type.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:81:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_renderer.dart:83:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/pie_chart/pie_chart_painter.dart:357:11: Error: No named parameter with the name 'textScaler'.
textScaler: holder.textScaler,
^^^^^^^^^^
../../Documents/flutter/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:47:5: Error: Type 'TextScaler' not found.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:73:3: Error: Type 'TextScaler' not found.
TextScaler get textScaler => _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:74:3: Error: Type 'TextScaler' not found.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:75:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:27:32: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
MediaQuery.of(context).textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:35:45: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
..textScaler = MediaQuery.of(context).textScaler
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:47:5: Error: 'TextScaler' isn't a type.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:74:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/line_chart/line_chart_renderer.dart:75:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.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.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:67:3: Error: Type 'TextScaler' not found.
TextScaler get textScaler => _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:68:3: Error: Type 'TextScaler' not found.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:70:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:22:32: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
MediaQuery.of(context).textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:30:45: Error: The getter 'textScaler' isn't defined for the class 'MediaQueryData'. - 'MediaQueryData' is from 'package:flutter/src/widgets/media_query.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/media_query.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.
..textScaler = MediaQuery.of(context).textScaler
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:42:5: Error: 'TextScaler' isn't a type.
TextScaler textScaler,
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:68:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:70:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
from fl_chart.
the above issue is not happening in 0.64.0 version
from fl_chart.
../../.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.
from fl_chart.
Related Issues (20)
- `belowBarData` does not fit the size of the line chart's start and end
- How can I draw a horizntol line from the last dot in LineChart? HOT 1
- PieChart: touched section index is incorrect if some values are zero HOT 1
- ScatterChart: Show label for a spot HOT 1
- sidetitle overloading each others
- 2 ToolTip top & bottom
- Best way to synchronize and show tool tips of an X value across multiple charts HOT 1
- [Feature Request] RadarChartTitle
- How to deal with small section in pie chart?
- Memory leaks after adding `touchCallback` and `checkToShowDot` HOT 4
- preventCurveOverShooting sounds like mitigation rather than solution HOT 1
- Strange rounding when the x values are 0 HOT 8
- it's posible to do scrollbar on line chart like attachment?
- BottomTitles for each bar in BarChart
- [Live graph] Errors such as noise in the live graph
- PieTouchData not working on some sections
- Overlapping labels, label alignment - add workaround to documentation
- ScatterChart doesn't support rangeAnnotation.
- Bug: Linux Example App build fails HOT 1
- Add Segment Selection to LineChart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fl_chart.