Skip to content

Commit

Permalink
Fix crash according to TerminalStudio#68
Browse files Browse the repository at this point in the history
  • Loading branch information
luxi78 committed Mar 6, 2022
1 parent 2b98174 commit 5733e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/frontend/terminal_view.dart
Expand Up @@ -209,7 +209,8 @@ class _TerminalViewState extends State<TerminalView> {
// with widgets such as Scrollbar.
return NotificationListener<ScrollNotification>(
onNotification: (notification) {
onScroll(notification.metrics.pixels);
//onScroll(notification.metrics.pixels);
new Future.microtask(() => onScroll(notification.metrics.pixels));
return false;
},
child: ScrollConfiguration(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -4,7 +4,7 @@ version: 2.6.0
homepage: https://github.com/TerminalStudio/xterm.dart

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.1 <3.0.0"
flutter: ">=2.0.0"

dependencies:
Expand Down

0 comments on commit 5733e75

Please sign in to comment.