رونمایی از پخته‌ترین و کاربردی‌ترین محصولات آموزشی سون‌لرن با کلی آفرهای ویژه🔥
۰ ثانیه
۰ دقیقه
۰ ساعت
۲ پریسا مسلمی
خطا موقع اجرا
جامعه فلاتر ایجاد شده در ۱۶ تیر ۱۴۰۳

سلام وقتی اجرا می‌کنم این خطا را میده:

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
The Flutter CLI developer tool uses Google Analytics to report usage and
diagnostic data
along with package dependencies, and crash reporting to send basic crash    
reports.
This data is used to help improve the Dart platform, Flutter framework, and 
related tools.

Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:

flutter --disable-telemetry.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).

Please note that analytics reporting was already disabled, and will continueto be disabled.

چرا؟

و اون خطا رفع شده این خطا را میده و از این خطا چند بار تکرار میشه

/C:/Users/Parisa/AppData/Local/Pub/Cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:42:23: Error: Undefined name 'textScaler'.

_textScaler = textScaler, ^^^^^^^^^^

/C:/Users/Parisa/AppData/Local/Pub/Cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:42:9: Error: '_textScaler' isn't an instance field of this class.

_textScaler = textScaler, ^^^^^^^^^^^

/C:/Users/Parisa/AppData/Local/Pub/Cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart:70:37: Error: The getter 'textScaler' isn't defined for the class 'RenderBarChart'.

- 'RenderBarChart' is from 'package:fl_chart/src/chart/bar_chart/bar_chart_renderer.dart' ('/C:/Users/Parisa/AppData/Local/Pub/Cache/hosted/pub.dev/fl_chart-0.65.0/lib/src/chart/bar_chart/bar_chart_renderer.dart').

bar_chart_renderer.dart:1

Try correcting the name to the name of an existing getter, or defining a getter or field named 'textScaler'.

 

PaintHolder(data, targetData, textScaler);

پریسا مسلمی ۱۶ تیر ۱۴۰۳، ۱۶:۴۵

سلام. کدتون رو هم بذارید

یلدا محصلی ۲۱ تیر ۱۴۰۳، ۲۲:۵۶