mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(mobile): don't show drag scroll date in search page (#17594)
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:
parent
b2753103c6
commit
aad5c3bada
4 changed files with 10 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
|
|||
final bool shrinkWrap;
|
||||
final bool showDragScroll;
|
||||
final bool showStack;
|
||||
final bool showLabel;
|
||||
|
||||
const ImmichAssetGridView({
|
||||
super.key,
|
||||
|
|
@ -78,6 +79,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
|
|||
this.shrinkWrap = false,
|
||||
this.showDragScroll = true,
|
||||
this.showStack = false,
|
||||
this.showLabel = true,
|
||||
});
|
||||
|
||||
@override
|
||||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue