Copy button for JSON & CSV previewer

This commit is contained in:
Ankit Mahato
2025-04-05 22:43:46 +05:30
parent 099b26798f
commit 5bd7abc55f

View File

@@ -83,7 +83,8 @@ class _ResponseBodySuccessState extends State<ResponseBodySuccess> {
},
),
const Spacer(),
kCodeRawBodyViewOptions.contains(currentSeg)
((widget.options == kPreviewRawBodyViewOptions) ||
kCodeRawBodyViewOptions.contains(currentSeg))
? CopyButton(
toCopy: widget.formattedBody ?? widget.body,
showLabel: showLabel,