MPFlutterChart icon indicating copy to clipboard operation
MPFlutterChart copied to clipboard

type 'TextSpan' is not a subtype of type 'String' issue

Open keskink opened this issue 4 years ago • 3 comments

There was an error on painter_utils.dart file at line #15.

I added ".toPlainText()" to end of line #15

if (painter.text != null && (painter.text is TextSpan)) { var preText = painter.text.toPlainText();

it is working for me now

keskink avatar Mar 12 '21 11:03 keskink

Just ran into the same issue, thanks for this!

purplegamba avatar Mar 13 '21 18:03 purplegamba

Same issue here, after upgrading to flutter 2, i can't build project due to this problem

taila-teq avatar Mar 17 '21 06:03 taila-teq

@keskink how do u fix it, in my case, it is the external library file PainterUtils.dart

taila-teq avatar Mar 17 '21 07:03 taila-teq