diff --git a/lib/pages/history/controller.dart b/lib/pages/history/controller.dart index dde9688e..aa098b2b 100644 --- a/lib/pages/history/controller.dart +++ b/lib/pages/history/controller.dart @@ -186,6 +186,7 @@ class HistoryController extends GetxController { } checkedCount.value = 0; SmartDialog.dismiss(); + enableMultiple.value = false; }, child: const Text('确认'), ) diff --git a/lib/pages/history/view.dart b/lib/pages/history/view.dart index cc6be6ca..d8fc60f0 100644 --- a/lib/pages/history/view.dart +++ b/lib/pages/history/view.dart @@ -37,6 +37,9 @@ class _HistoryPageState extends State { } }, ); + _historyController.enableMultiple.listen((p0) { + setState(() {}); + }); } // 选中 diff --git a/lib/pages/history/widgets/item.dart b/lib/pages/history/widgets/item.dart index 6fa87207..f531a276 100644 --- a/lib/pages/history/widgets/item.dart +++ b/lib/pages/history/widgets/item.dart @@ -215,7 +215,11 @@ class HistoryItem extends StatelessWidget { child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(12), - color: Colors.black.withOpacity(0.6), + color: Colors.black.withOpacity( + ctr!.enableMultiple.value && + videoItem.checked + ? 0.6 + : 0), ), child: Center( child: SizedBox(