Merge branch 'design' into alpha

This commit is contained in:
guozhigq
2023-10-09 08:29:56 +08:00
3 changed files with 14 additions and 2 deletions

View File

@ -180,12 +180,17 @@ class HistoryController extends GetxController {
List<HisListItem> result =
historyList.where((e) => e.checked!).toList();
for (HisListItem i in result) {
String resKid = 'archive_${i.kid}';
String str = 'archive';
try {
str = i.history!.business!;
} catch (_) {}
String resKid = '${str}_${i.kid}';
await UserHttp.delHistory(resKid);
historyList.removeWhere((e) => e.kid == i.kid);
}
checkedCount.value = 0;
SmartDialog.dismiss();
enableMultiple.value = false;
},
child: const Text('确认'),
)

View File

@ -37,6 +37,9 @@ class _HistoryPageState extends State<HistoryPage> {
}
},
);
_historyController.enableMultiple.listen((p0) {
setState(() {});
});
}
// 选中

View File

@ -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(