From e70041fefaae986de697db825de8180357f91714 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 22 Nov 2024 00:46:55 +0800 Subject: [PATCH] :rocket: Launch 2.0.0+6 --- lib/widgets/navigation/app_background.dart | 16 +++++++++------- pubspec.yaml | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/widgets/navigation/app_background.dart b/lib/widgets/navigation/app_background.dart index 1ffcbac..5ddc342 100644 --- a/lib/widgets/navigation/app_background.dart +++ b/lib/widgets/navigation/app_background.dart @@ -82,22 +82,24 @@ class AppBackground extends StatelessWidget { builder: (context, snapshot) { if (isRoot || ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)) { - if (snapshot.hasData) { + if (snapshot.hasData && isRoot) { final path = '${snapshot.data!.path}/app_background_image'; final file = File(path); if (file.existsSync()) { return _buildWithBackgroundImage(context, file, child); } + } else { + return Material( + color: Theme.of(context).colorScheme.surface, + child: child, + ); } } - final backgroundColor = - ResponsiveBreakpoints.of(context).largerThan(MOBILE) - ? Colors.transparent - : Theme.of(context).colorScheme.surface; - return Material( - color: backgroundColor, + color: isRoot + ? Theme.of(context).colorScheme.surface + : Colors.transparent, child: child, ); }, diff --git a/pubspec.yaml b/pubspec.yaml index c866d1b..d9ebe11 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 2.0.0+5 +version: 2.0.0+6 environment: sdk: ^3.5.4