Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use consistent padding in menu items

ashilkn0b7ab4b10c8b
diff --git a/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget_new.dart b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget_new.dart
index aff27d487f..9ed9f9a72f 100644
--- a/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget_new.dart
+++ b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget_new.dart
@@ -152,13 +152,12 @@ class _MenuItemWidgetNewState extends State<MenuItemWidgetNew> {
final effectiveMenuItemColor = menuItemColor ?? defaultMenuItemColor;
final bool hasSubText =
widget.subText != null && widget.subText!.isNotEmpty;
- final verticalPadding = hasSubText ? 12.0 : 16.0;
return AnimatedContainer(
duration: const Duration(milliseconds: 20),
width: double.infinity,
clipBehavior: Clip.none,
- padding: EdgeInsets.symmetric(horizontal: 16, vertical: verticalPadding),
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(circularRadius),
color: effectiveMenuItemColor,