Skip to content

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

Description

@keskink

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

Activity

  1. purplegamba commented on Mar 13, 2021

    @purplegamba

    Just ran into the same issue, thanks for this!

  2. taila-teq commented on Mar 17, 2021

    @taila-teq

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

  3. taila-teq commented on Mar 17, 2021

    @taila-teq

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions