File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,7 @@ class SearchResultGrid extends StatelessWidget {
768
768
editEnabled: true ,
769
769
favoriteEnabled: true ,
770
770
stackEnabled: false ,
771
+ dragScrollLabelEnabled: false ,
771
772
emptyIndicator: Padding (
772
773
padding: const EdgeInsets .symmetric (horizontal: 16.0 ),
773
774
child: ! isSearching
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
32
32
final Widget ? topWidget;
33
33
final bool shrinkWrap;
34
34
final bool showDragScroll;
35
+ final bool showDragScrollLabel;
35
36
final bool showStack;
36
37
37
38
const ImmichAssetGrid ({
@@ -52,6 +53,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
52
53
this .topWidget,
53
54
this .shrinkWrap = false ,
54
55
this .showDragScroll = true ,
56
+ this .showDragScrollLabel = true ,
55
57
this .showStack = false ,
56
58
});
57
59
@@ -119,6 +121,7 @@ class ImmichAssetGrid extends HookConsumerWidget {
119
121
shrinkWrap: shrinkWrap,
120
122
showDragScroll: showDragScroll,
121
123
showStack: showStack,
124
+ showLabel: showDragScrollLabel,
122
125
),
123
126
);
124
127
}
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
58
58
final bool shrinkWrap;
59
59
final bool showDragScroll;
60
60
final bool showStack;
61
+ final bool showLabel;
61
62
62
63
const ImmichAssetGridView ({
63
64
super .key,
@@ -78,6 +79,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {
78
79
this .shrinkWrap = false ,
79
80
this .showDragScroll = true ,
80
81
this .showStack = false ,
82
+ this .showLabel = true ,
81
83
});
82
84
83
85
@override
@@ -284,7 +286,7 @@ class ImmichAssetGridViewState extends ConsumerState<ImmichAssetGridView> {
284
286
backgroundColor: context.isDarkTheme
285
287
? context.colorScheme.primary.darken (amount: .5 )
286
288
: context.colorScheme.primary,
287
- labelTextBuilder: _labelBuilder,
289
+ labelTextBuilder: widget.showLabel ? _labelBuilder : null ,
288
290
padding: appBarOffset ()
289
291
? const EdgeInsets .only (top: 60 )
290
292
: const EdgeInsets .only (),
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class MultiselectGrid extends HookConsumerWidget {
35
35
this .onRemoveFromAlbum,
36
36
this .topWidget,
37
37
this .stackEnabled = false ,
38
+ this .dragScrollLabelEnabled = true ,
38
39
this .archiveEnabled = false ,
39
40
this .deleteEnabled = true ,
40
41
this .favoriteEnabled = true ,
@@ -50,6 +51,7 @@ class MultiselectGrid extends HookConsumerWidget {
50
51
final Future <bool > Function (Iterable <Asset >)? onRemoveFromAlbum;
51
52
final Widget ? topWidget;
52
53
final bool stackEnabled;
54
+ final bool dragScrollLabelEnabled;
53
55
final bool archiveEnabled;
54
56
final bool unarchive;
55
57
final bool deleteEnabled;
@@ -429,6 +431,7 @@ class MultiselectGrid extends HookConsumerWidget {
429
431
),
430
432
topWidget: topWidget,
431
433
showStack: stackEnabled,
434
+ showDragScrollLabel: dragScrollLabelEnabled,
432
435
),
433
436
error: (error, _) => Center (child: Text (error.toString ())),
434
437
loading: buildLoadingIndicator ?? buildDefaultLoadingIndicator,
You can’t perform that action at this time.
0 commit comments