Skip to content

Commit 3826d93

Browse files
committed
handle #82
1 parent 13328a7 commit 3826d93

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/src/widget/animation/highlight_mask_animation.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ class HighlightMaskAnimation extends StatelessWidget {
5959
);
6060
}
6161

62-
return FadeTransition(
63-
opacity: CurvedAnimation(parent: controller, curve: Curves.linear),
64-
child: mask,
65-
);
62+
return highlightBuilder != null
63+
? mask
64+
: FadeTransition(
65+
opacity: CurvedAnimation(parent: controller, curve: Curves.linear),
66+
child: mask,
67+
);
6668
}
6769
}

0 commit comments

Comments
 (0)