Disable save in downloads for mobile

This commit is contained in:
Ashita Prasad
2025-03-07 06:20:04 +05:30
parent b35068ebc1
commit 7eb5285446
2 changed files with 9 additions and 4 deletions

View File

@ -154,10 +154,14 @@ class ViewCodePane extends StatelessWidget {
showLabel: showLabel,
),
),
SaveInDownloadsButton(
content: stringToBytes(code),
ext: codegenLanguage.ext,
showLabel: showLabel,
// TODO: Save to Downloads folder does not work in Mobile
Visibility(
visible: !kIsMobile,
child: SaveInDownloadsButton(
content: stringToBytes(code),
ext: codegenLanguage.ext,
showLabel: showLabel,
),
),
],
),