mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: wire secondary action for bottom bar actions (#30583)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
4be8e1a9fc
commit
0687c0d3f7
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,9 @@ import 'package:immich_ui/immich_ui.dart';
|
|||
List<Widget> _actionColumnButtons(BuildContext context, WidgetRef ref, List<ActionBuilder> actions) => actions
|
||||
.map((a) => a.create(context, ref))
|
||||
.nonNulls
|
||||
.map((item) => ImmichColumnButton(icon: item.icon, label: item.label, onPressed: item.onAction))
|
||||
.map<ImmichColumnButton>(
|
||||
(item) => .new(icon: item.icon, label: item.label, onPressed: item.onAction, onLongPress: item.onSecondaryAction),
|
||||
)
|
||||
.toList(growable: false);
|
||||
|
||||
class ViewerBottomBar extends ConsumerWidget {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue