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:
shenlong 2026-08-06 01:15:31 +05:30 committed by GitHub
parent 4be8e1a9fc
commit 0687c0d3f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {