🚀 Launch 2.0.0+8

🐛 Bug fixes on background color
This commit is contained in:
2024-11-24 20:54:01 +08:00
parent 7221af75eb
commit 9b6544df46
4 changed files with 6 additions and 10 deletions

View File

@ -82,17 +82,12 @@ class AppBackground extends StatelessWidget {
builder: (context, snapshot) {
if (isRoot ||
ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)) {
if (snapshot.hasData && isRoot) {
if (snapshot.hasData) {
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,
);
}
}