Code Monkey home page Code Monkey logo

Comments (3)

charlescyt avatar charlescyt commented on May 23, 2024 7

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.

anilkumar416 avatar anilkumar416 commented on May 23, 2024

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.

anilkumar416 avatar anilkumar416 commented on May 23, 2024

the above issue is not happening in 0.64.0 version

from fl_chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.