From ca8a6a8849fd281ab19c0b224d45e55d8611bcad Mon Sep 17 00:00:00 2001 From: zarzet Date: Thu, 16 Jul 2026 08:08:49 +0700 Subject: [PATCH] perf(shell): gate backdrop blur by device capability --- lib/screens/main_shell.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/screens/main_shell.dart b/lib/screens/main_shell.dart index 4e8e2330..869b9c77 100644 --- a/lib/screens/main_shell.dart +++ b/lib/screens/main_shell.dart @@ -726,7 +726,7 @@ class _MainShellState extends ConsumerState ); // The backdrop blur re-filters everything scrolling underneath on // every frame; low-end devices get an opaque base instead. - if (ref.read(lowEndDeviceProvider)) { + if (!ref.read(backdropBlurEnabledProvider)) { return ColoredBox( color: settingsGroupColor(context), child: bottomBar, @@ -734,7 +734,8 @@ class _MainShellState extends ConsumerState } return ClipRect( child: BackdropFilter( - filter: ImageFilter.blur(sigmaX: 18, sigmaY: 18), + filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10), + blendMode: BlendMode.src, child: bottomBar, ), );