🐛 Fix tabs padding cause background color missing, close #221
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user