Browse Source

Update ZModem example

xuty 2 năm trước cách đây
mục cha
commit
d40f306f15
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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}');
+        },
       ),
     );
   }