feat: 删除已观看历史记录 issues #81
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user