Browse Source

Update ZModem example

xuty 2 years ago
parent
commit
d40f306f15
1 changed files with 4 additions and 0 deletions
  1. 4 0
      example/lib/zmodem.dart

+ 4 - 0
example/lib/zmodem.dart

@@ -151,6 +151,10 @@ class _MyHomePageState extends State<MyHomePage> {
               WithProgress(onProgress: (bytes) => updateProgress(file, bytes)),
             )
             .cast<Uint8List>(),
+        onSkip: () {
+          terminal.write('\r\n');
+          terminal.write('Rejected ${file.name}');
+        },
       ),
     );
   }