feat: hide view code button for now

This commit is contained in:
Udhay-Adithya
2025-09-24 21:00:39 +05:30
parent b286e34578
commit 92ea46c519

View File

@@ -53,29 +53,29 @@ class _RequestPaneState extends State<RequestPane>
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
FilledButton.tonalIcon( // FilledButton.tonalIcon(
style: FilledButton.styleFrom( // style: FilledButton.styleFrom(
padding: kPh12, // padding: kPh12,
minimumSize: const Size(44, 44), // minimumSize: const Size(44, 44),
), // ),
onPressed: widget.onPressedCodeButton, // onPressed: widget.onPressedCodeButton,
icon: Icon( // icon: Icon(
widget.codePaneVisible // widget.codePaneVisible
? Icons.code_off_rounded // ? Icons.code_off_rounded
: Icons.code_rounded, // : Icons.code_rounded,
size: 18, // size: 18,
), // ),
label: SizedBox( // label: SizedBox(
width: 80, // width: 80,
child: Text( // child: Text(
widget.codePaneVisible // widget.codePaneVisible
? kLabelHideCode // ? kLabelHideCode
: kLabelViewCode, // : kLabelViewCode,
overflow: TextOverflow.ellipsis, // overflow: TextOverflow.ellipsis,
maxLines: 1, // maxLines: 1,
), // ),
), // ),
), // ),
], ],
), ),
), ),