Skip to content

Commit

Permalink
catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
deathblade666 committed Aug 30, 2024
1 parent 8199028 commit 636f3e7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/pages/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,16 @@ class Menu extends StatefulWidget {
//}

final result = (await FlutterFileDialog.pickFile());

if (result == null) {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
content: Text("result: $result"),
);
}
);
};
// await CRFileSaver.saveFileWithDialog(SaveFileDialogParams(sourceFilePath: '/sdcard/Downloads', destinationFileName: destinationFileName))
//final XFile textfile = XFile.fromData(bytes);
//await textfile.saveTo(result!);
Expand Down

0 comments on commit 636f3e7

Please sign in to comment.