π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use leading icons in gallery popup menu
ashilknf74f3786e0ed
diff --git a/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart b/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dartindex f1e8807f71..894c3539d4 100644--- a/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart+++ b/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart@@ -12,6 +12,7 @@ class EntePopupMenuOption<T> {required this.label,this.secondaryLabel,this.labelColor,+ this.leadingWidget,this.isActive = false,this.trailingWidget,this.activeTrailingWidget,@@ -22,6 +23,7 @@ class EntePopupMenuOption<T> {final String label;final String? secondaryLabel;final Color? labelColor;+ final Widget? leadingWidget;final bool isActive;final Widget? trailingWidget;final Widget? activeTrailingWidget;@@ -218,8 +220,14 @@ class _EntePopupMenuRow<T> extends StatelessWidget {);return Row(- mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [+ if (option.leadingWidget != null) ...[+ SizedBox.square(+ dimension: 20,+ child: Center(child: option.leadingWidget),+ ),+ const SizedBox(width: 12),+ ],Expanded(child: title),if (option.trailingWidget != null)option.trailingWidget!diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dartindex 92f4f696d1..268d47d5aa 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart@@ -285,6 +285,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {return EntePopupMenuButton<T>(optionsBuilder: optionsBuilder,onSelected: onSelected,+ elevation: 0,child: Tooltip(message: tooltip,child: _GalleryAppBarIconButtonSurface(icon: icon),@@ -869,14 +870,14 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {EntePopupMenuOption<AlbumPopupAction> _menuOption(AlbumPopupAction value,String label,- Widget trailingWidget, {+ Widget leadingWidget, {Color? labelColor,}) {return EntePopupMenuOption(value: value,label: label,labelColor: labelColor,- trailingWidget: trailingWidget,+ leadingWidget: leadingWidget,);}