drawer: Set drawer highlight item text to bold and same color as other items

TODO: Support set drawerHighlightTextColor
This commit is contained in:
Calcitem 2021-07-19 23:58:54 +08:00
parent 897186c16f
commit 3bda00a884
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 6 additions and 3 deletions

View File

@ -294,7 +294,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
var listItemIcon = Icon(listItem.icon!.icon,
color: widget.screenIndex == listItem.index
? AppTheme.drawerHighlightIconColor
? Color(Config.drawerTextColor) // TODO: drawerHighlightTextColor
: Color(Config.drawerTextColor));
var stack = Stack(
@ -317,10 +317,13 @@ class _HomeDrawerState extends State<HomeDrawer> {
Text(
listItem.title,
style: TextStyle(
fontWeight: FontWeight.w500,
fontWeight: widget.screenIndex == listItem.index
? FontWeight.w700
: FontWeight.w500,
fontSize: Config.fontSize,
color: widget.screenIndex == listItem.index
? AppTheme.drawerHighlightTextColor
? Color(Config
.drawerTextColor) // TODO: drawerHighlightTextColor
: Color(Config.drawerTextColor),
),
),