diff --git a/lib/src/widgets/yaru_choice_chip_bar.dart b/lib/src/widgets/yaru_choice_chip_bar.dart index ab156e67b..52325155a 100644 --- a/lib/src/widgets/yaru_choice_chip_bar.dart +++ b/lib/src/widgets/yaru_choice_chip_bar.dart @@ -272,22 +272,16 @@ class _YaruChoiceChipBarState extends State { ), child: listView, ), - Positioned( - left: 0, - child: AnimatedOpacity( - duration: widget.animationDuration, - opacity: _enableGoPreviousButton ? 1.0 : 0.0, + if (_enableGoPreviousButton) + Positioned( + left: 0, child: goPreviousButton, ), - ), - Positioned( - right: 0, - child: AnimatedOpacity( - duration: widget.animationDuration, - opacity: _enableGoNextButton ? 1.0 : 0.0, + if (_enableGoNextButton) + Positioned( + right: 0, child: goNextButton, ), - ), ], ), );