Explorar o código

Update ZModem example

xuty %!s(int64=2) %!d(string=hai) anos
pai
achega
d40f306f15
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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}');
+        },
       ),
     );
   }