Add clear unfavorited history functionality. Close #372

This commit is contained in:
nyne
2025-05-22 19:59:42 +08:00
parent 8f357b3e6c
commit 88f093f7e5
3 changed files with 29 additions and 3 deletions

View File

@@ -140,6 +140,13 @@ class _HistoryPageState extends State<HistoryPage> {
title: 'Clear History'.tl,
content: Text('Are you sure you want to clear your history?'.tl),
actions: [
Button.outlined(
onPressed: () {
HistoryManager().clearUnfavoritedHistory();
context.pop();
},
child: Text('Clear Unfavorited'.tl),
),
Button.filled(
color: context.colorScheme.error,
onPressed: () {