Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[QUESTION] Optimize HTML widget #1214

Closed Stoisss closed 1 year ago

Stoisss commented 1 year ago

As the HTML files that I have to render are way too large image and it takes the renderer more than 15 seconds to process it.

So my question is do you have any suggestions on how to make the parsing on the tree something like a SliverChildBuilderDelegate and create the widgets 'on demand'?

Stoisss commented 1 year ago

My changes were causing the problem, sorry about any inconvenience.

HadesPTIT commented 1 year ago

I’m dealing with that too. Currently, you can break the Html into separate child widgets and then build it discretely, instead of building a very long Html. There is a thread about this, you can check it out https://github.com/Sub6Resources/flutter_html/issues/361