Skip to content

Commit 9a38a7b

Browse files
committed
use FilePicker in desktop OS
1 parent eae6c30 commit 9a38a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/features/editor/presentation/pages/result_controls_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class _ResultControlsPageState extends State<ResultControlsPage> {
415415
final fileToShare = await playgroundProvider.genereSharedActiveProject(
416416
widget.code, _outputs, _includedFiles);
417417

418-
if (Platform.isWindows) {
418+
if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
419419
String? outputFile = await FilePicker.platform.saveFile(
420420
dialogTitle: 'Please select an output file:',
421421
fileName: fileName("${fileToShare.path}.zip"),

0 commit comments

Comments
 (0)