enabled only for mobile devices

This commit is contained in:
Mrudul-2
2025-02-13 17:42:49 +05:30
parent 80b366f4e3
commit 5dfeb31bc9
2 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import 'package:apidash/consts.dart';
import 'package:apidash/utils/utils.dart';
import 'code_previewer.dart';
import 'widgets.dart'
show CopyButton, DropdownButtonCodegenLanguage, SaveInDownloadsButton;
show CopyButton,DropdownButtonCodegenLanguage, SaveInDownloadsButton;
class CodeGenPreviewer extends StatefulWidget {
const CodeGenPreviewer({
@ -151,7 +151,13 @@ class ViewCodePane extends StatelessWidget {
toCopy: code,
showLabel: showLabel,
),
ShareButton(toShare: code),
Visibility(
visible: kIsMobile,
child: ShareButton(
toShare: code,
showLabel: showLabel,
)
),
SaveInDownloadsButton(
content: stringToBytes(code),
ext: codegenLanguage.ext,