Skip to content

Commit

Permalink
handle #82
Browse files Browse the repository at this point in the history
  • Loading branch information
xdd666t committed Oct 26, 2022
1 parent 13328a7 commit 3826d93
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/src/widget/animation/highlight_mask_animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ class HighlightMaskAnimation extends StatelessWidget {
);
}

return FadeTransition(
opacity: CurvedAnimation(parent: controller, curve: Curves.linear),
child: mask,
);
return highlightBuilder != null
? mask
: FadeTransition(
opacity: CurvedAnimation(parent: controller, curve: Curves.linear),
child: mask,
);
}
}

0 comments on commit 3826d93

Please sign in to comment.