Skip to content

Commit 5733e75

Browse files
committed
Fix crash according to TerminalStudio#68
1 parent 2b98174 commit 5733e75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/frontend/terminal_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ class _TerminalViewState extends State<TerminalView> {
209209
// with widgets such as Scrollbar.
210210
return NotificationListener<ScrollNotification>(
211211
onNotification: (notification) {
212-
onScroll(notification.metrics.pixels);
212+
//onScroll(notification.metrics.pixels);
213+
new Future.microtask(() => onScroll(notification.metrics.pixels));
213214
return false;
214215
},
215216
child: ScrollConfiguration(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.6.0
44
homepage: https://github.com/TerminalStudio/xterm.dart
55

66
environment:
7-
sdk: ">=2.12.0 <3.0.0"
7+
sdk: ">=2.16.1 <3.0.0"
88
flutter: ">=2.0.0"
99

1010
dependencies:

0 commit comments

Comments
 (0)