From 4c8f2e3251d1dd601c660d95fc255b8f0abf06e1 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 28 Dec 2025 14:10:42 +0800 Subject: [PATCH] :bug: Fix tabs padding cause background color missing, close #221 --- lib/screens/tabs.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/screens/tabs.dart b/lib/screens/tabs.dart index 665d5aca..6cbe38d0 100644 --- a/lib/screens/tabs.dart +++ b/lib/screens/tabs.dart @@ -204,7 +204,7 @@ class TabsScreen extends HookConsumerWidget { removeTop: true, child: Container( decoration: BoxDecoration( - color: Colors.transparent, + color: Theme.of(context).colorScheme.surface.withOpacity(0.8), boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.1), @@ -232,9 +232,7 @@ class TabsScreen extends HookConsumerWidget { selectedIndex: currentIndex, onDestinationSelected: onDestinationSelected, labelBehavior: NavigationDestinationLabelBehavior.alwaysHide, - backgroundColor: Theme.of( - context, - ).colorScheme.surface.withOpacity(0.8), + backgroundColor: Colors.transparent, indicatorColor: Theme.of( context, ).colorScheme.primary.withOpacity(0.2),