feat(mobile): Add multi selected assets to album (#1446)

* refactored to use multiple assets in AddToAlbumList

* add to album from multiselect

* consistent language

* fixed accidental boolean
This commit is contained in:
martyfuhry
2023-01-27 16:05:08 -05:00
committed by GitHub
parent 3f2513a717
commit 8d47798fa2
7 changed files with 269 additions and 111 deletions

View File

@@ -5,6 +5,7 @@ import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hive/hive.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/constants/hive_box.dart';
import 'package:immich_mobile/modules/album/ui/add_to_album_bottom_sheet.dart';
import 'package:immich_mobile/modules/album/ui/add_to_album_list.dart';
import 'package:immich_mobile/modules/asset_viewer/providers/image_viewer_page_state.provider.dart';
import 'package:immich_mobile/modules/asset_viewer/ui/exif_bottom_sheet.dart';
@@ -115,8 +116,8 @@ class GalleryViewerPage extends HookConsumerWidget {
backgroundColor: Colors.transparent,
context: context,
builder: (BuildContext _) {
return AddToAlbumList(
asset: addToAlbumAsset,
return AddToAlbumBottomSheet(
assets: [addToAlbumAsset],
);
},
);