mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Update previewer_json.dart
This commit is contained in:
@ -180,16 +180,6 @@ class _JsonPreviewerState extends State<JsonPreviewer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: constraints.minWidth > kMinWindowSize.width
|
||||
? [
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
await _copy(
|
||||
kJsonEncoder.convert(widget.code), sm);
|
||||
},
|
||||
child: const Text(
|
||||
'Copy',
|
||||
style: kTextStyleButtonSmall,
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: state.areAllExpanded()
|
||||
? null
|
||||
@ -210,19 +200,6 @@ class _JsonPreviewerState extends State<JsonPreviewer> {
|
||||
),
|
||||
]
|
||||
: [
|
||||
IconButton(
|
||||
tooltip: "Copy",
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
visualDensity: VisualDensity.compact,
|
||||
onPressed: () async {
|
||||
await _copy(
|
||||
kJsonEncoder.convert(widget.code), sm);
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.copy,
|
||||
size: 16,
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
tooltip: "Expand All",
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
|
Reference in New Issue
Block a user