Skip to content

it seem doesn't convert tag<img/>'s width attribute correctly #149

@cheapw

Description

@cheapw

where I use flutter_html: ^0.9.6 there was no error occurred, In the (flutter_html: ^0.10.4) version would throw the following error.

The error message:
I/flutter (13563): The following FormatException was thrown building HtmlRichTextParser(dirty, dependencies:
I/flutter (13563): [MediaQuery, DefaultTextStyle, _LocalizationsScope-[GlobalKey#8a7c6], Directionality]):
I/flutter (13563): Invalid double
I/flutter (13563): 100%
The origin html:
img width="100%" height="auto" alt="" src="http://images.baixingliangfan.cn/shopGoodsDetailImg/20190109/20190109172624_128.png" />img width="100%" height="auto" alt="" src="http://images.baixingliangfan.cn/shopGoodsDetailImg/20190109/20190109172624_372.png" />

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