Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mobile/lib/pages/search/search.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ class SearchResultGrid extends StatelessWidget {
editEnabled: true,
favoriteEnabled: true,
stackEnabled: false,
dragScrollLabelEnabled: false,
emptyIndicator: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: !isSearching
Expand Down
3 changes: 3 additions & 0 deletions mobile/lib/widgets/asset_grid/immich_asset_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
final Widget? topWidget;
final bool shrinkWrap;
final bool showDragScroll;
final bool showDragScrollLabel;
final bool showStack;

const ImmichAssetGrid({
Expand All @@ -52,6 +53,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
this.topWidget,
this.shrinkWrap = false,
this.showDragScroll = true,
this.showDragScrollLabel = true,
this.showStack = false,
});

Expand Down Expand Up @@ -119,6 +121,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
shrinkWrap: shrinkWrap,
showDragScroll: showDragScroll,
showStack: showStack,
showLabel: showDragScrollLabel,
),
);
}
Expand Down
4 changes: 3 additions & 1 deletion mobile/lib/widgets/asset_grid/immich_asset_grid_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
final bool shrinkWrap;
final bool showDragScroll;
final bool showStack;
final bool showLabel;

const ImmichAssetGridView({
super.key,
Expand All @@ -78,6 +79,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
this.shrinkWrap = false,
this.showDragScroll = true,
this.showStack = false,
this.showLabel = true,
});

@override
Expand Down Expand Up @@ -284,7 +286,7 @@ class ImmichAssetGridViewState extends ConsumerState<ImmichAssetGridView> {
backgroundColor: context.isDarkTheme
? context.colorScheme.primary.darken(amount: .5)
: context.colorScheme.primary,
labelTextBuilder: _labelBuilder,
labelTextBuilder: widget.showLabel ? _labelBuilder : null,
padding: appBarOffset()
? const EdgeInsets.only(top: 60)
: const EdgeInsets.only(),
Expand Down
3 changes: 3 additions & 0 deletions mobile/lib/widgets/asset_grid/multiselect_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class MultiselectGrid extends HookConsumerWidget {
this.onRemoveFromAlbum,
this.topWidget,
this.stackEnabled = false,
this.dragScrollLabelEnabled = true,
this.archiveEnabled = false,
this.deleteEnabled = true,
this.favoriteEnabled = true,
Expand All @@ -51,6 +52,7 @@ class MultiselectGrid extends HookConsumerWidget {
final Future<bool> Function(Iterable<Asset>)? onRemoveFromAlbum;
final Widget? topWidget;
final bool stackEnabled;
final bool dragScrollLabelEnabled;
final bool archiveEnabled;
final bool unarchive;
final bool deleteEnabled;
Expand Down Expand Up @@ -430,6 +432,7 @@ class MultiselectGrid extends HookConsumerWidget {
),
topWidget: topWidget,
showStack: stackEnabled,
showDragScrollLabel: dragScrollLabelEnabled,
),
error: (error, _) => Center(child: Text(error.toString())),
loading: buildLoadingIndicator ?? buildDefaultLoadingIndicator,
Expand Down
Loading