Trying to change background color of TabBar
with theme change from light/dark. Found a way to manage indicatorColor
, labelColor
, unselectedLabelColor
using TabBarTheme but there is no way for TabBar
. Found TabBar will make use of PrimaryColor
but that is also not helping even if having distinct primaryColor
for both theme. Is it because TabBar
is inside Slivers
.
DarkTheme
tabBarTheme: const TabBarTheme(
labelColor: colorOffWhite,
indicatorColor: colorBlackBg,
unselectedLabelColor: disabledTextColor,
),
Light Theme
tabBarTheme: const TabBarTheme(
labelColor: colorBlackBg,
indicatorColor: colorBlackBg,
unselectedLabelColor: disabledTextColor,
),