diff --git a/lib/screens/shopping_list_screen.dart b/lib/screens/shopping_list_screen.dart index bc90bd6..8755bf7 100644 --- a/lib/screens/shopping_list_screen.dart +++ b/lib/screens/shopping_list_screen.dart @@ -269,25 +269,26 @@ class _ShoppingListScreenState extends State { } }, itemBuilder: (context) => [ - PopupMenuItem( - value: 'change name', - child: Row( - mainAxisAlignment: - MainAxisAlignment.start, - children: const [ - Icon( - Icons.edit, - ), - SizedBox( - width: 10, - ), - Text( - 'Change\nName', - softWrap: true, - ), - ], + if (collection.name != 'Others') + PopupMenuItem( + value: 'change name', + child: Row( + mainAxisAlignment: + MainAxisAlignment.start, + children: const [ + Icon( + Icons.edit, + ), + SizedBox( + width: 10, + ), + Text( + 'Change\nName', + softWrap: true, + ), + ], + ), ), - ), PopupMenuItem( value: 'delete', child: Row(