mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Update request_pane.dart
This commit is contained in:
@ -57,20 +57,19 @@ class _RequestPaneState extends State<RequestPane>
|
|||||||
style: FilledButton.styleFrom(
|
style: FilledButton.styleFrom(
|
||||||
padding: kPh12,
|
padding: kPh12,
|
||||||
minimumSize: const Size(44, 44),
|
minimumSize: const Size(44, 44),
|
||||||
|
visualDensity: VisualDensity.compact,
|
||||||
|
alignment: Alignment.center,
|
||||||
),
|
),
|
||||||
onPressed: widget.onPressedCodeButton,
|
onPressed: widget.onPressedCodeButton,
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
widget.codePaneVisible
|
widget.codePaneVisible ? Icons.code_off_rounded : Icons.code_rounded,
|
||||||
? Icons.code_off_rounded
|
size: 20,
|
||||||
: Icons.code_rounded,
|
|
||||||
),
|
),
|
||||||
label: SizedBox(
|
label: Text(
|
||||||
width: 75,
|
widget.codePaneVisible ? kLabelHideCode : kLabelViewCode,
|
||||||
child: Text(
|
textAlign: TextAlign.center,
|
||||||
widget.codePaneVisible
|
overflow: TextOverflow.ellipsis,
|
||||||
? kLabelHideCode
|
maxLines: 1,
|
||||||
: kLabelViewCode,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user