refactor: bottom sheet action button (#20964)

* fix: incorrect archive action shown in asset viewer'

* Refactor

* use enums syntax and add tests
This commit is contained in:
Alex
2025-08-18 10:20:08 -05:00
committed by GitHub
parent cd6d8fcdfe
commit ec01db5c8b
6 changed files with 906 additions and 42 deletions

View File

@@ -44,6 +44,7 @@ class LikeActivityActionButton extends ConsumerWidget {
);
return BaseActionButton(
maxWidth: 60,
iconData: liked != null ? Icons.favorite : Icons.favorite_border,
label: "like".t(context: context),
onPressed: () => onTap(liked),