Browse Source

fixed UI bug on theme change

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

+ 6 - 0
lib/ui/components/menu_item_widget.dart

@@ -54,6 +54,12 @@ class _MenuItemWidgetState extends State<MenuItemWidget> {
     super.initState();
   }
 
+  @override
+  void didChangeDependencies() {
+    menuItemColor = widget.menuItemColor;
+    super.didChangeDependencies();
+  }
+
   @override
   void dispose() {
     if (widget.expandableController != null) {