mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: hide view code button for now
This commit is contained in:
@@ -53,29 +53,29 @@ class _RequestPaneState extends State<RequestPane>
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
FilledButton.tonalIcon(
|
||||
style: FilledButton.styleFrom(
|
||||
padding: kPh12,
|
||||
minimumSize: const Size(44, 44),
|
||||
),
|
||||
onPressed: widget.onPressedCodeButton,
|
||||
icon: Icon(
|
||||
widget.codePaneVisible
|
||||
? Icons.code_off_rounded
|
||||
: Icons.code_rounded,
|
||||
size: 18,
|
||||
),
|
||||
label: SizedBox(
|
||||
width: 80,
|
||||
child: Text(
|
||||
widget.codePaneVisible
|
||||
? kLabelHideCode
|
||||
: kLabelViewCode,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
// FilledButton.tonalIcon(
|
||||
// style: FilledButton.styleFrom(
|
||||
// padding: kPh12,
|
||||
// minimumSize: const Size(44, 44),
|
||||
// ),
|
||||
// onPressed: widget.onPressedCodeButton,
|
||||
// icon: Icon(
|
||||
// widget.codePaneVisible
|
||||
// ? Icons.code_off_rounded
|
||||
// : Icons.code_rounded,
|
||||
// size: 18,
|
||||
// ),
|
||||
// label: SizedBox(
|
||||
// width: 80,
|
||||
// child: Text(
|
||||
// widget.codePaneVisible
|
||||
// ? kLabelHideCode
|
||||
// : kLabelViewCode,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// maxLines: 1,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user