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

[BUG]提示:_createTextSpan(xmlEvent.value, tag) #519

Open
code4life49 opened this issue Dec 26, 2023 · 1 comment
Open

[BUG]提示:_createTextSpan(xmlEvent.value, tag) #519

code4life49 opened this issue Dec 26, 2023 · 1 comment

Comments

@code4life49
Copy link

问题提交

标题格式:[BUG]: flutter项目启动报错

内容需包含:

if (xmlEvent is xml.XmlTextEvent) {
_Tag tag = _Tag();
tag.style = style.copyWith();
if (stack.isNotEmpty) {
tag = stack.last;
}
TextSpan textSpan = _createTextSpan(xmlEvent.value, tag);
spans.add(textSpan);
}

源码这一段有错,XmlTextEvent这个类中,属性明明是text,但是却引用了xmlEvent.value,所以导致异常,本人项目自己改成xmlEvent.text以后就正常了。

@zhoujuanjuan
Copy link
Collaborator

你好,请参照模版补充 flutter sdk 版本等相关信息,以便我们排查

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