Map Gallery: Added file selection overlay

This commit is contained in:
ashilkn 2023-06-24 11:52:17 +05:30
parent 3e543bdcb5
commit 0b206ecd72

View file

@ -6,9 +6,11 @@ import "package:photos/core/event_bus.dart";
import "package:photos/events/local_photos_updated_event.dart";
import "package:photos/models/file.dart";
import "package:photos/models/file_load_result.dart";
import "package:photos/models/gallery_type.dart";
import "package:photos/models/selected_files.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/viewer/actions/file_selection_overlay_bar.dart";
import "package:photos/ui/viewer/gallery/gallery.dart";
class MapPullUpGallery extends StatelessWidget {
@ -109,7 +111,10 @@ class MapPullUpGallery extends StatelessWidget {
);
}
return Gallery(
return Stack(
alignment: Alignment.bottomCenter,
children: [
Gallery(
asyncLoader: (
creationStartTime,
creationEndTime, {
@ -125,6 +130,12 @@ class MapPullUpGallery extends StatelessWidget {
showSelectAllByDefault: true,
selectedFiles: _selectedFiles,
isScrollablePositionedList: false,
),
FileSelectionOverlayBar(
GalleryType.searchResults,
_selectedFiles,
)
],
);
},
),