chore(mobile): don't show drag scroll date in search page ()

Dont show drag scroll date in search page

* When using the drag scroll, the date of the current image is shown. This is now made toggleable.
* For the mobile search result page, the display of the date is now disabled because the results are not sorted by date and therefore a display of the date is not desirable.
This commit is contained in:
Toni 2025-04-14 21:03:18 +02:00 committed by GitHub
commit aad5c3bada
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 1 deletions
mobile/lib/widgets/asset_grid

View file

@ -35,6 +35,7 @@ class MultiselectGrid extends HookConsumerWidget {
this.onRemoveFromAlbum,
this.topWidget,
this.stackEnabled = false,
this.dragScrollLabelEnabled = true,
this.archiveEnabled = false,
this.deleteEnabled = true,
this.favoriteEnabled = true,
@ -50,6 +51,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;
@ -429,6 +431,7 @@ class MultiselectGrid extends HookConsumerWidget {
),
topWidget: topWidget,
showStack: stackEnabled,
showDragScrollLabel: dragScrollLabelEnabled,
),
error: (error, _) => Center(child: Text(error.toString())),
loading: buildLoadingIndicator ?? buildDefaultLoadingIndicator,