🐛 Fix tabs padding cause background color missing, close #221

This commit is contained in:
2025-12-28 14:10:42 +08:00
parent bc9d2ab8ce
commit 4c8f2e3251

View File

@@ -204,7 +204,7 @@ class TabsScreen extends HookConsumerWidget {
removeTop: true, removeTop: true,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.transparent, color: Theme.of(context).colorScheme.surface.withOpacity(0.8),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black.withOpacity(0.1), color: Colors.black.withOpacity(0.1),
@@ -232,9 +232,7 @@ class TabsScreen extends HookConsumerWidget {
selectedIndex: currentIndex, selectedIndex: currentIndex,
onDestinationSelected: onDestinationSelected, onDestinationSelected: onDestinationSelected,
labelBehavior: NavigationDestinationLabelBehavior.alwaysHide, labelBehavior: NavigationDestinationLabelBehavior.alwaysHide,
backgroundColor: Theme.of( backgroundColor: Colors.transparent,
context,
).colorScheme.surface.withOpacity(0.8),
indicatorColor: Theme.of( indicatorColor: Theme.of(
context, context,
).colorScheme.primary.withOpacity(0.2), ).colorScheme.primary.withOpacity(0.2),