Skip to content

Commit

Permalink
more error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
deathblade666 committed Aug 30, 2024
1 parent d4c4f91 commit ac0e8e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pages/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ class Menu extends StatefulWidget {
// Operation was canceled by the user.
//return;
//}

try {
final result = (await FlutterFileDialog.pickFile());
var file = File(result!);
var sink = file.openWrite();
sink.add(bytes);
}
on Exception catch (result) {
showDialog(
Expand Down

0 comments on commit ac0e8e1

Please sign in to comment.