Prepare RuleGel 1.0

This commit is contained in:
2026-05-24 22:06:15 +03:00
parent 1adfc1fa0c
commit 16e86fb9d5
18 changed files with 413 additions and 6 deletions
@@ -9,6 +9,7 @@ class PostActionBar extends StatelessWidget {
required this.isFavorite,
this.onDownload,
this.onSimilar,
this.onHide,
super.key,
});
@@ -19,6 +20,7 @@ class PostActionBar extends StatelessWidget {
final bool isFavorite;
final VoidCallback? onDownload;
final VoidCallback? onSimilar;
final VoidCallback? onHide;
@override
Widget build(BuildContext context) {
@@ -60,6 +62,12 @@ class PostActionBar extends StatelessWidget {
onPressed: onDownload,
icon: const Icon(Icons.download_rounded),
),
if (onHide != null)
IconButton.filledTonal(
tooltip: 'Hide post locally',
onPressed: onHide,
icon: const Icon(Icons.visibility_off_rounded),
),
],
);
}