소스 검색

Update ZModem example

xuty 2 년 전
부모
커밋
d40f306f15
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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}');
+        },
       ),
     );
   }