mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-30 19:37:35 -05:00
fix: html view disposed before set state
This commit is contained in:
@@ -29,9 +29,11 @@ class _HtmlViewState extends State<HtmlView> {
|
||||
final value = await controller
|
||||
.evaluateJavascript("document.documentElement.scrollHeight;");
|
||||
// print(value);
|
||||
setState(() {
|
||||
height = double.parse(value);
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
height = double.parse(value);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user