mirror of
https://github.com/foss42/apidash.git
synced 2025-06-27 02:51:54 +08:00
enabled only for mobile devices
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import 'package:apidash_design_system/apidash_design_system.dart';
|
import 'package:apidash_design_system/apidash_design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:apidash/consts.dart';
|
import 'package:apidash/consts.dart';
|
||||||
|
|
||||||
class CopyButton extends StatelessWidget {
|
class CopyButton extends StatelessWidget {
|
||||||
|
@ -151,7 +151,13 @@ class ViewCodePane extends StatelessWidget {
|
|||||||
toCopy: code,
|
toCopy: code,
|
||||||
showLabel: showLabel,
|
showLabel: showLabel,
|
||||||
),
|
),
|
||||||
ShareButton(toShare: code),
|
Visibility(
|
||||||
|
visible: kIsMobile,
|
||||||
|
child: ShareButton(
|
||||||
|
toShare: code,
|
||||||
|
showLabel: showLabel,
|
||||||
|
)
|
||||||
|
),
|
||||||
SaveInDownloadsButton(
|
SaveInDownloadsButton(
|
||||||
content: stringToBytes(code),
|
content: stringToBytes(code),
|
||||||
ext: codegenLanguage.ext,
|
ext: codegenLanguage.ext,
|
||||||
|
Reference in New Issue
Block a user