Able to temporary disable background image

This commit is contained in:
2025-09-04 00:25:44 +08:00
parent a61c889c6c
commit 3aece9316c
9 changed files with 71 additions and 142 deletions

View File

@@ -271,11 +271,12 @@ class AppBackground extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final imageFileAsync = ref.watch(backgroundImageFileProvider);
final settings = ref.watch(appSettingsNotifierProvider);
if (isRoot || !isWideScreen(context)) {
return imageFileAsync.when(
data: (file) {
if (file != null) {
if (file != null && settings.showBackgroundImage) {
return Container(
color: Theme.of(context).colorScheme.surface,
child: Container(