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);
|
var sp = getShortPath(path);
|
||||||
message = 'Saved to $sp';
|
message = 'Saved to $sp';
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
debugPrint("$e");
|
||||||
message = "An error occurred while saving file.";
|
message = "An error occurred while saving file.";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -154,10 +154,14 @@ class ViewCodePane extends StatelessWidget {
|
|||||||
showLabel: showLabel,
|
showLabel: showLabel,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SaveInDownloadsButton(
|
// TODO: Save to Downloads folder does not work in Mobile
|
||||||
content: stringToBytes(code),
|
Visibility(
|
||||||
ext: codegenLanguage.ext,
|
visible: !kIsMobile,
|
||||||
showLabel: showLabel,
|
child: SaveInDownloadsButton(
|
||||||
|
content: stringToBytes(code),
|
||||||
|
ext: codegenLanguage.ext,
|
||||||
|
showLabel: showLabel,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user