mirror of
https://github.com/foss42/apidash.git
synced 2025-05-30 13:27:09 +08:00
enabled only for mobile devices
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user