mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(mobile): Multiselect add to favorite from the timeline (#1558)
* multiselect add to favorites
This commit is contained in:
parent
2139853dd9
commit
b8d2f5b373
4 changed files with 57 additions and 21 deletions
|
|
@ -8,6 +8,7 @@ import 'package:immich_mobile/shared/models/album.dart';
|
|||
|
||||
class ControlBottomAppBar extends ConsumerWidget {
|
||||
final Function onShare;
|
||||
final Function onFavorite;
|
||||
final Function onDelete;
|
||||
final Function(Album album) onAddToAlbum;
|
||||
final void Function() onCreateNewAlbum;
|
||||
|
|
@ -18,6 +19,7 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||
const ControlBottomAppBar({
|
||||
Key? key,
|
||||
required this.onShare,
|
||||
required this.onFavorite,
|
||||
required this.onDelete,
|
||||
required this.sharedAlbums,
|
||||
required this.albums,
|
||||
|
|
@ -37,6 +39,13 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||
onShare();
|
||||
},
|
||||
),
|
||||
ControlBoxButton(
|
||||
iconData: Icons.star_rounded,
|
||||
label: "Favorite",
|
||||
onPressed: () {
|
||||
onFavorite();
|
||||
},
|
||||
),
|
||||
ControlBoxButton(
|
||||
iconData: Icons.delete_outline_rounded,
|
||||
label: "control_bottom_app_bar_delete".tr(),
|
||||
|
|
@ -51,6 +60,7 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||
);
|
||||
},
|
||||
),
|
||||
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue