Open
Description
I have this code and I don't know how to change text Color depends on the tab selection
bottomNavigationBar: StyleProvider(
style: BookReaderNavigationBarStyle(),
child: ConvexAppBar(
style: TabStyle.react,
items: bottomNavigationItems,
color: Colors.white,
backgroundColor: AppColors.greyColor,
initialActiveIndex: _tabIndex,
onTap: (int index) {
if (index != _tabIndex) {
setState(() => _tabIndex = index);
}
},
),
),
And this is my style:
class BookReaderNavigationBarStyle extends InternalStyle {
@override
TextStyle textStyle(Color color, fontFamily) {
return TextStyle(
color: Colors.black,
fontSize: sp(12),
fontWeight: FontWeight.w400,
fontFamily: "ReaderStyle",
);
}
}

Metadata
Metadata
Assignees
Labels
No labels