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

Sub tags within links breaks pageload #260

Closed
t3chvest opened this issue Apr 12, 2020 · 2 comments
Closed

Sub tags within links breaks pageload #260

t3chvest opened this issue Apr 12, 2020 · 2 comments

Comments

@t3chvest
Copy link

t3chvest commented Apr 12, 2020

Trying to add subscript tags in links breaks the page. Looks like <sup> doesn't work either, but doesn't break the page. Handful of other text modifiers tested seem to work as normal (strong, small, em, strike).

Ex.,
<a href='link.html'>change in CO<sub>2</sub>in the atmosphere</a>

Leads to:

The following NoSuchMethodError was thrown building HtmlRichTextParser(dirty, dependencies: [DefaultTextStyle, _LocalizationsScope-[GlobalKey#93d2a], MediaQuery, Directionality]):
The method '*' was called on null.
Receiver: null
Tried calling: *(0.7)

When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 HtmlRichTextParser._parseNode (package:flutter_html/rich_text_parser.dart:526:47)
#2 HtmlRichTextParser._parseNode. (package:flutter_html/rich_text_parser.dart:1015:9)
#3 ListMixin.forEach (dart:collection/list.dart:69:13)
#4 HtmlRichTextParser._parseNode (package:flutter_html/rich_text_parser.dart:1014:18)

(beginner programmer doing this for a school project so apologies ahead of time if this is something incorrectly done from my end)

@t3chvest
Copy link
Author

moved to 1.0.0-pre.1, looks like it handles this issue fine with the changes in richtext parsing.

@Sub6Resources
Copy link
Owner

@t3chvest Glad you found the new version. Good luck on your school project!

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