Skip to content

Commit

Permalink
Update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser committed Oct 10, 2023
1 parent 4422884 commit 5dd840a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/flexible_space_bar.dart
Expand Up @@ -468,7 +468,7 @@ class _RenderFlexibleSpaceHeaderOpacity extends RenderOpacity {
if (child == null) {
return;
}
if (opacity == 0 || !needsCompositing) {
if ((opacity * 255).roundToDouble() <= 0) {
layer = null;
return;
}
Expand Down

0 comments on commit 5dd840a

Please sign in to comment.