mirror of
https://github.com/foss42/apidash.git
synced 2025-05-21 16:26:37 +08:00
fix: segment button icons
This commit is contained in:
@ -425,13 +425,8 @@ class _BodySuccessState extends State<BodySuccess> {
|
||||
(widget.options == kRawBodyViewOptions)
|
||||
? const SizedBox()
|
||||
: SegmentedButton<ResponseBodyView>(
|
||||
showSelectedIcon: showLabel,
|
||||
style: const ButtonStyle(
|
||||
padding: WidgetStatePropertyAll(
|
||||
EdgeInsets.symmetric(
|
||||
horizontal: 8,
|
||||
),
|
||||
),
|
||||
style: SegmentedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
),
|
||||
selectedIcon: Icon(currentSeg.icon),
|
||||
segments: widget.options
|
||||
@ -439,7 +434,10 @@ class _BodySuccessState extends State<BodySuccess> {
|
||||
(e) => ButtonSegment<ResponseBodyView>(
|
||||
value: e,
|
||||
label: Text(e.label),
|
||||
icon: showLabel ? Icon(e.icon) : null,
|
||||
icon: constraints.maxWidth >
|
||||
kMinWindowSize.width
|
||||
? Icon(e.icon)
|
||||
: null,
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
|
Reference in New Issue
Block a user