trentpiercy / flutter-candlesticks

Elegant OHLC Candlestick and Trade Volume charts for @Flutter

Home Page:https://pub.dev/packages/flutter_candlesticks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

LogicRepo opened this issue · 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.

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

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?