diff --git a/lib/pages/history/widgets/item.dart b/lib/pages/history/widgets/item.dart index 7e01a74b9..76fa2548e 100644 --- a/lib/pages/history/widgets/item.dart +++ b/lib/pages/history/widgets/item.dart @@ -380,8 +380,10 @@ class HistoryItem extends StatelessWidget { ), ), PopupMenuItem( - onTap: () => ctr!.delHistory( - videoItem.kid, videoItem.history.business), + onTap: () => onDelete != null + ? onDelete!(videoItem.kid, videoItem.history.business) + : ctr.delHistory( + videoItem.kid, videoItem.history.business), height: 35, child: const Row( children: [