Closed xxofficial closed 1 year ago
In this case, I would recommend separating out the Html
widget from the StatefulWidget
using some sort of bloc
or StreamBuilder
to pass new data to the Html
widget. Adding a key
to the Html
widget could also be helpful, depending on how your tree is formatted.
Describe the bug:
First the paltform is Android. And I am using a HTML to a statefulWidget with a TextField. When open or close the keyboard the error occurred.It seems that when open or close the keyboard the setState() will be called. HTML to reproduce the issue:
the "bv" is which I will type in and when the TextField onSubmitted I will call the setState(){} ``` Html( data: """""", customRenders: {iframeMatcher(): iframeRender(),}, ), ``` **Screenshots:**Device details and Flutter/Dart/
flutter_html
versions:flutter_html: 3.0.0-alpha.6 flutter_html_iframe: ^3.0.0-alpha.4 Stacktrace/Logcat
A picture of a cute animal (not mandatory but encouraged)
This is cute. right?