瀏覽代碼

Fixes samples (new Backend API)

devmil 4 年之前
父節點
當前提交
4660edc07d
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 5 0
      example/lib/main.dart
  2. 5 0
      example/lib/ssh.dart

+ 5 - 0
example/lib/main.dart

@@ -81,6 +81,11 @@ class FakeTerminalBackend implements TerminalBackend {
   void terminate() {
     //NOOP
   }
+
+  @override
+  void ackProcessed() {
+    //NOOP
+  }
 }
 
 class _MyHomePageState extends State<MyHomePage> {

+ 5 - 0
example/lib/ssh.dart

@@ -98,6 +98,11 @@ class SSHTerminalBackend implements TerminalBackend {
   void terminate() {
     client?.disconnect('terminate');
   }
+
+  @override
+  void ackProcessed() {
+    // NOOP
+  }
 }
 
 class _MyHomePageState extends State<MyHomePage> {