Icon colors change when collapsing navigation sidebar menu

This commit is contained in:
Hillel Coren 2022-06-13 17:26:12 +03:00
parent 3f585c4021
commit 9f6c55c222
1 changed files with 13 additions and 10 deletions

View File

@ -689,16 +689,19 @@ class _DrawerTileState extends State<DrawerTile> {
message: prefState.enableTooltips ? widget.title : '', message: prefState.enableTooltips ? widget.title : '',
child: ColoredBox( child: ColoredBox(
color: color, color: color,
child: InkWell( child: Opacity(
onTap: onTap, opacity: isSelected ? 1 : .8,
onLongPress: onLongPress, child: InkWell(
child: SizedBox( onTap: onTap,
height: 40, onLongPress: onLongPress,
child: Icon( child: SizedBox(
widget.icon, height: 40,
color: textColor, child: Icon(
), widget.icon,
)), color: textColor,
),
)),
),
), ),
); );
} }