Skip to content

Commit

Permalink
fix(example): animate label out after removing icon
Browse files Browse the repository at this point in the history
  • Loading branch information
benthillerkus committed Apr 5, 2022
1 parent e5b8a24 commit 07dcdc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/edit_icon/lib/view/element_selector/selectable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ class _SelectableState extends State<Selectable> {
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,
Expand Down

0 comments on commit 07dcdc6

Please sign in to comment.