feat: 删除已观看历史记录 issues #81

This commit is contained in:
guozhigq
2023-09-11 17:36:05 +08:00
parent 0e39453558
commit ef38844798
5 changed files with 67 additions and 4 deletions

View File

@ -66,6 +66,9 @@ class _HistoryPageState extends State<HistoryPage> {
case 'clear':
_historyController.onClearHistory();
break;
case 'del':
_historyController.onDelHistory();
break;
default:
}
},
@ -82,6 +85,10 @@ class _HistoryPageState extends State<HistoryPage> {
value: 'clear',
child: Text('清空观看记录'),
),
const PopupMenuItem<String>(
value: 'del',
child: Text('删除已看记录'),
),
],
),
const SizedBox(width: 6),
@ -112,6 +119,7 @@ class _HistoryPageState extends State<HistoryPage> {
return HistoryItem(
videoItem:
_historyController.historyList[index],
ctr: _historyController,
);
},
childCount: