perf(shell): gate backdrop blur by device capability

This commit is contained in:
zarzet
2026-07-16 08:08:49 +07:00
parent 5a970ac83d
commit ca8a6a8849
+3 -2
View File
@@ -726,7 +726,7 @@ class _MainShellState extends ConsumerState<MainShell>
);
// 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<MainShell>
}
return ClipRect(
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 18, sigmaY: 18),
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
blendMode: BlendMode.src,
child: bottomBar,
),
);