From 9b6544df46c2fa37ec067c4721f3fed94d1777b6 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 24 Nov 2024 20:54:01 +0800 Subject: [PATCH] :rocket: Launch 2.0.0+8 :bug: Bug fixes on background color --- lib/router.dart | 4 +++- lib/screens/chat/room.dart | 3 +-- lib/widgets/navigation/app_background.dart | 7 +------ pubspec.yaml | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/router.dart b/lib/router.dart index 3556061..14f56ca 100644 --- a/lib/router.dart +++ b/lib/router.dart @@ -230,7 +230,9 @@ final _appRoutes = [ GoRoute( path: '/settings', name: 'settings', - builder: (context, state) => const SettingsScreen(), + builder: (context, state) => const AppBackground( + child: SettingsScreen(), + ), ), ], ), diff --git a/lib/screens/chat/room.dart b/lib/screens/chat/room.dart index a4c161b..db0982d 100644 --- a/lib/screens/chat/room.dart +++ b/lib/screens/chat/room.dart @@ -106,10 +106,9 @@ class _ChatRoomScreenState extends State { try { final sn = context.read(); - final resp = await sn.client.delete( + await sn.client.delete( '/cgi/im/channels/${_messageController.channel!.keyPath}/calls/ongoing', ); - log(jsonDecode(resp.data)); } catch (err) { if (!mounted) return; context.showErrorDialog(err); diff --git a/lib/widgets/navigation/app_background.dart b/lib/widgets/navigation/app_background.dart index 5ddc342..9b5d212 100644 --- a/lib/widgets/navigation/app_background.dart +++ b/lib/widgets/navigation/app_background.dart @@ -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, - ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 5a9beb8..2fd727b 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+7 +version: 2.0.0+8 environment: sdk: ^3.5.4