Skip to content

Commit

Permalink
fix(macos): fix crash on export pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 14, 2024
1 parent 4255d21 commit 165c42d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/data/file_manager/file_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ class FileManager {
String? outputFile = await FilePicker.platform.saveFile(
fileName: fileName,
initialDirectory: (await getDownloadsDirectory())?.path,
type: FileType.custom,
allowedExtensions: [fileName.split('.').last],
);
if (outputFile != null) {
Expand Down

0 comments on commit 165c42d

Please sign in to comment.