mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
fix: prevent error when scrolling without clients
This commit is contained in:
parent
29fe96151d
commit
afc4c620f8
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ class _CodeEditorPageState extends ConsumerState<CodeEditorPage> {
|
|||
_logsNotifier.value.add(event);
|
||||
try {
|
||||
await Future.delayed(const Duration(milliseconds: 5));
|
||||
_scrollController.jumpTo(_scrollController.position.maxScrollExtent);
|
||||
if (_scrollController.hasClients) {
|
||||
_scrollController.jumpTo(_scrollController.position.maxScrollExtent);
|
||||
}
|
||||
} catch (_) {}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue