From 07dcdc659d42de771eaedfb7e6fc78e28035693b Mon Sep 17 00:00:00 2001 From: Bent Hillerkus <29630575+benthillerkus@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:47:09 +0200 Subject: [PATCH] fix(example): animate label out after removing icon --- example/edit_icon/lib/view/element_selector/selectable.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/edit_icon/lib/view/element_selector/selectable.dart b/example/edit_icon/lib/view/element_selector/selectable.dart index 803faf3..bac71a6 100644 --- a/example/edit_icon/lib/view/element_selector/selectable.dart +++ b/example/edit_icon/lib/view/element_selector/selectable.dart @@ -136,7 +136,11 @@ class _SelectableState extends State { child: AnimatedOpacity( duration: widget.timeToRemove, curve: Curves.easeOut, - opacity: widget.isSelected ? 1 : .6, + opacity: _removing + ? 0 + : widget.isSelected + ? 1 + : .6, child: Text( widget.label!, style: theme.textTheme.caption,