drawer: Set drawer highlight item text to bold and same color as other items
TODO: Support set drawerHighlightTextColor
This commit is contained in:
parent
897186c16f
commit
3bda00a884
|
@ -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),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue