Revert "use_build_context_synchronously"
This reverts commit 1b16573b06.
This commit is contained in:
parent
145af722e9
commit
9fd57ab2a6
1 changed files with 2 additions and 4 deletions
|
|
@ -54,10 +54,8 @@ class _MangaWebViewState extends ConsumerState<MangaWebView> {
|
|||
..setBrightness(Brightness.dark)
|
||||
..launch(widget.url)
|
||||
..onClose.whenComplete(() {
|
||||
if (mounted) {
|
||||
timer.cancel();
|
||||
Navigator.pop(context);
|
||||
}
|
||||
timer.cancel();
|
||||
Navigator.pop(context);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue