1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-22 04:28:11 +02:00

feat(mobile): Multiselect add to favorite from the timeline (#1558)

* multiselect add to favorites
This commit is contained in:
martyfuhry
2023-02-06 07:59:56 -05:00
committed by GitHub
parent 2139853dd9
commit b8d2f5b373
4 changed files with 57 additions and 21 deletions

View File

@ -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 {
);
},
),
],
);
}