feat(mobile): album shared user editing (#20671)

* feat(mobile): album shared user editing

* fix: album leaving

* i18n and options button

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Brandon Wees 2025-08-05 10:31:58 -05:00 committed by GitHub
parent 13d43e193e
commit 7118dca559
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 335 additions and 14 deletions

View file

@ -13,6 +13,7 @@ class DriftRemoteAlbumOption extends ConsumerWidget {
this.onCreateSharedLink,
this.onToggleAlbumOrder,
this.onEditAlbum,
this.onShowOptions,
});
final VoidCallback? onAddPhotos;
@ -22,6 +23,7 @@ class DriftRemoteAlbumOption extends ConsumerWidget {
final VoidCallback? onCreateSharedLink;
final VoidCallback? onToggleAlbumOrder;
final VoidCallback? onEditAlbum;
final VoidCallback? onShowOptions;
@override
Widget build(BuildContext context, WidgetRef ref) {
@ -69,6 +71,12 @@ class DriftRemoteAlbumOption extends ConsumerWidget {
title: Text('create_shared_link'.t(context: context), style: textStyle),
onTap: onCreateSharedLink,
),
if (onShowOptions != null)
ListTile(
leading: const Icon(Icons.settings),
title: Text('options'.t(context: context), style: textStyle),
onTap: onShowOptions,
),
if (onDeleteAlbum != null) ...[
const Divider(indent: 16, endIndent: 16),
ListTile(