Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit a02cd3e

Browse files
committed
fix: floatTween could be nullable in animatedOpacity -- refine
1 parent a283719 commit a02cd3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/widgets/implicit_animations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public override void dispose() {
215215
}
216216

217217
public bool _shouldAnimateTween<T2>(Tween<T2> tween, T2 targetValue) {
218-
return !targetValue.Equals(tween.end != null ? tween.end : tween.begin);
218+
return !targetValue.Equals(tween.end == null ? tween.begin : tween.end);
219219
}
220220

221221
public void _updateTween<T2>(Tween<T2> tween, T2 targetValue) {

0 commit comments

Comments
 (0)