mirror of
https://github.com/foss42/apidash.git
synced 2025-06-17 20:16:27 +08:00
Revert "Fixed the responsiveness of the view code header"
This reverts commit e2d232f462a3a87a3e2d953ec9255a28fd249ef2.
This commit is contained in:
@ -40,7 +40,7 @@ class _CopyButtonState extends State<CopyButton> {
|
|||||||
Icons.content_copy,
|
Icons.content_copy,
|
||||||
size: 20,
|
size: 20,
|
||||||
),
|
),
|
||||||
if (widget.showLabel) Text(MediaQuery.of(context).size.width > 1315 ? kLabelCopy : '')
|
if (widget.showLabel) const Text(kLabelCopy)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -156,7 +156,7 @@ class _SaveInDownloadsButtonState extends State<SaveInDownloadsButton> {
|
|||||||
Icons.download,
|
Icons.download,
|
||||||
size: 20,
|
size: 20,
|
||||||
),
|
),
|
||||||
if (widget.showLabel) Text(MediaQuery.of(context).size.width > 1315 ? kLabelDownload : '')
|
if (widget.showLabel) const Text(kLabelDownload)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -140,36 +140,23 @@ class _ViewCodePaneState extends State<ViewCodePane> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: kHeaderHeight*2,
|
height: kHeaderHeight,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Expanded(
|
||||||
flex: 1,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Code",
|
"Code",
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
style: Theme.of(context).textTheme.titleMedium,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
DropdownButtonCodegenLanguage(
|
||||||
flex: 3,
|
codegenLanguage: widget.codegenLanguage,
|
||||||
child: DropdownButtonCodegenLanguage(
|
onChanged: widget.onChangedCodegenLanguage,
|
||||||
codegenLanguage: widget.codegenLanguage,
|
|
||||||
onChanged: widget.onChangedCodegenLanguage,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(
|
CopyButton(toCopy: widget.code),
|
||||||
flex: MediaQuery.of(context).size.width>1350?2:1,
|
SaveInDownloadsButton(
|
||||||
child: CopyButton(
|
content: stringToBytes(widget.code),
|
||||||
toCopy: widget.code,
|
mimeType: "application/vnd.dart",
|
||||||
),
|
|
||||||
),
|
|
||||||
Flexible(
|
|
||||||
flex: MediaQuery.of(context).size.width>1350?2:1,
|
|
||||||
child: SaveInDownloadsButton(
|
|
||||||
content: stringToBytes(widget.code),
|
|
||||||
mimeType: "application/vnd.dart",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -151,12 +151,9 @@ class _DropdownButtonCodegenLanguageState
|
|||||||
value: value,
|
value: value,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: kPs8,
|
padding: kPs8,
|
||||||
child: SizedBox(
|
child: Text(
|
||||||
width: MediaQuery.of(context).size.width <1315?MediaQuery.of(context).size.width * 0.1:MediaQuery.of(context).size.width * 0.09,
|
value.label,
|
||||||
child: Text(
|
style: kTextStyleButton,
|
||||||
value.label,
|
|
||||||
style: kTextStyleButton,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user