diff --git a/lib/widgets/response_widgets.dart b/lib/widgets/response_widgets.dart index 54a93db9..ce07c100 100644 --- a/lib/widgets/response_widgets.dart +++ b/lib/widgets/response_widgets.dart @@ -425,13 +425,8 @@ class _BodySuccessState extends State { (widget.options == kRawBodyViewOptions) ? const SizedBox() : SegmentedButton( - 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 { (e) => ButtonSegment( value: e, label: Text(e.label), - icon: showLabel ? Icon(e.icon) : null, + icon: constraints.maxWidth > + kMinWindowSize.width + ? Icon(e.icon) + : null, ), ) .toList(),