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

Building AOT snapshot in release mode (ios-release)... Compiler message: lib/special_text/emoji_text.dart:22:14: Error: A value of type 'ImageSpan' can't be assigned to a variable of type 'TextSpan'. #24

Closed
vikashfleapo2019 opened this issue Jul 27, 2019 · 2 comments

Comments

@vikashfleapo2019
Copy link

  • 'ImageSpan' is from 'package:extended_text_library/src/image_span.dart'
    ('file://Development/flutter/.pub-cache/hosted/pub.dartlang.org/extended_text_library-0.
    4.2/lib/src/image_span.dart').

    • 'TextSpan' is from 'package:flutter/src/painting/text_span.dart'
      ('file:/Development/flutter/packages/flutter/lib/src/painting/text_span.dart').

    Try changing the type of the left hand side, or casting the right hand side to 'TextSpan'.

       return ImageSpan(AssetImage(EmojiUitl.instance.emojiMap[key]),
    
@zmtzawqlp
Copy link
Member

can you provide full error msg, and the demo to produce this issue

zmtzawqlp added a commit that referenced this issue Jul 30, 2019
* Fix issue [ImageSpan is not TextSpan](#24)
@zmtzawqlp
Copy link
Member

@vikashfleapo2019 please take a look , v0.6.3

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

2 participants