mirror of
https://github.com/foss42/apidash.git
synced 2025-05-26 02:36:31 +08:00
Disable save in downloads for mobile
This commit is contained in:
@ -40,6 +40,7 @@ Future<void> saveToDownloads(
|
||||
var sp = getShortPath(path);
|
||||
message = 'Saved to $sp';
|
||||
} catch (e) {
|
||||
debugPrint("$e");
|
||||
message = "An error occurred while saving file.";
|
||||
}
|
||||
} else {
|
||||
|
@ -154,11 +154,15 @@ class ViewCodePane extends StatelessWidget {
|
||||
showLabel: showLabel,
|
||||
),
|
||||
),
|
||||
SaveInDownloadsButton(
|
||||
// TODO: Save to Downloads folder does not work in Mobile
|
||||
Visibility(
|
||||
visible: !kIsMobile,
|
||||
child: SaveInDownloadsButton(
|
||||
content: stringToBytes(code),
|
||||
ext: codegenLanguage.ext,
|
||||
showLabel: showLabel,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user