Browse Source

fallback to menuItemColor if pressedColor is null on pressed state on MenuItemWidget

ashilkn 2 years ago
parent
commit
c766d30662
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/ui/components/menu_item_widget.dart

+ 1 - 1
lib/ui/components/menu_item_widget.dart

@@ -166,7 +166,7 @@ class _MenuItemWidgetState extends State<MenuItemWidget> {
 
   void _onTapDown(details) {
     setState(() {
-      menuItemColor = widget.pressedColor;
+      menuItemColor = widget.pressedColor ?? widget.menuItemColor;
     });
   }