flutter-candlesticks icon indicating copy to clipboard operation
flutter-candlesticks copied to clipboard

The getter 'text' isn't defined for the class 'InlineSpan'.

Open LogicRepo opened this issue 3 years ago • 2 comments

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_candlesticks-0.1.4/lib/flutter_candlesticks.dart:190:57: Error: The getter 'text' isn't defined for the class 'InlineSpan'.

  • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/inline_span.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'. width = size.width - gridLineTextPainters[0].text.text.length * 6;

I'm getting this error. if anyone knows it , please help here.

LogicRepo avatar Jul 14 '21 11:07 LogicRepo

InlineSpan inlineSpan = gridLineTextPainters[0].text; width = size.width - inlineSpan.toPlainText().length * 6;

Gdailyer avatar Sep 06 '21 07:09 Gdailyer

InlineSpan inlineSpan = gridLineTextPainters[0].text; width = size.width - inlineSpan.toPlainText().length * 6;

Hey , where do I add this piece of code to fix the issue?

someshjadhwani24 avatar Oct 10 '22 13:10 someshjadhwani24