mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 20:13:56 +08:00
Code sharing refactor
This commit is contained in:
@@ -147,22 +147,16 @@ class ViewCodePane extends StatelessWidget {
|
||||
toCopy: code,
|
||||
showLabel: showLabel,
|
||||
),
|
||||
Visibility(
|
||||
visible: kIsMobile,
|
||||
child: ShareButton(
|
||||
toShare: code,
|
||||
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,
|
||||
),
|
||||
),
|
||||
kIsMobile
|
||||
? ShareButton(
|
||||
toShare: code,
|
||||
showLabel: showLabel,
|
||||
)
|
||||
: SaveInDownloadsButton(
|
||||
content: stringToBytes(code),
|
||||
ext: codegenLanguage.ext,
|
||||
showLabel: showLabel,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user