From 5dd840aa5f5c331f097582560da26223826ae60f Mon Sep 17 00:00:00 2001 From: Taha Tesser Date: Tue, 10 Oct 2023 18:57:26 +0300 Subject: [PATCH] Update condition --- packages/flutter/lib/src/material/flexible_space_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/flexible_space_bar.dart b/packages/flutter/lib/src/material/flexible_space_bar.dart index ebd3c878fa3bf1..4611e96dbb66da 100644 --- a/packages/flutter/lib/src/material/flexible_space_bar.dart +++ b/packages/flutter/lib/src/material/flexible_space_bar.dart @@ -468,7 +468,7 @@ class _RenderFlexibleSpaceHeaderOpacity extends RenderOpacity { if (child == null) { return; } - if (opacity == 0 || !needsCompositing) { + if ((opacity * 255).roundToDouble() <= 0) { layer = null; return; }