Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
keskink opened this issue Mar 12, 2021 · 3 comments
Open

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

keskink opened this issue Mar 12, 2021 · 3 comments

Comments

@keskink
Copy link

keskink commented Mar 12, 2021

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

@purplegamba
Copy link

Just ran into the same issue, thanks for this!

@taila-teq
Copy link

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

@taila-teq
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants