From ff191798c2bb069426e648d0ac0c8b18b91b8b44 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Thu, 4 Jan 2024 12:04:16 +0100 Subject: [PATCH] fix: choice chip nav buttons block mouse Fixes #817 --- lib/src/widgets/yaru_choice_chip_bar.dart | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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, ), - ), ], ), );