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