The getter 'text' isn't defined for the class 'InlineSpan'.
LogicRepo opened this issue · comments
Logical Code commented
/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.
Gdailyer commented
InlineSpan inlineSpan = gridLineTextPainters[0].text;
width = size.width - inlineSpan.toPlainText().length * 6;
someshjadhwani24 commented
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?