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,6 +689,8 @@ class _DrawerTileState extends State<DrawerTile> {
message: prefState.enableTooltips ? widget.title : '',
child: ColoredBox(
color: color,
child: Opacity(
opacity: isSelected ? 1 : .8,
child: InkWell(
onTap: onTap,
onLongPress: onLongPress,
@ -700,6 +702,7 @@ class _DrawerTileState extends State<DrawerTile> {
),
)),
),
),
);
}