GalleryOverflow: keep leave album at bottom

This commit is contained in:
Neeraj Gupta 2023-08-30 17:08:03 +05:30
parent f5a77ad712
commit bb820c9357

View file

@ -481,22 +481,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
if (galleryType == GalleryType.sharedCollection) {
final bool hasShareeArchived = widget.collection!.hasShareeArchived();
items.add(
PopupMenuItem(
value: AlbumPopupAction.leave,
child: Row(
children: [
const Icon(Icons.logout),
const Padding(
padding: EdgeInsets.all(8),
),
Text(S.of(context).leaveAlbum),
],
),
),
);
//here
items.add(
PopupMenuItem(
value: AlbumPopupAction.sharedArchive,
@ -517,6 +501,20 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
),
),
);
items.add(
PopupMenuItem(
value: AlbumPopupAction.leave,
child: Row(
children: [
const Icon(Icons.logout),
const Padding(
padding: EdgeInsets.all(8),
),
Text(S.of(context).leaveAlbum),
],
),
),
);
}
if (galleryType == GalleryType.localFolder) {
items.add(