mod: 历史记录删除逻辑
This commit is contained in:
@ -186,6 +186,7 @@ class HistoryController extends GetxController {
|
|||||||
}
|
}
|
||||||
checkedCount.value = 0;
|
checkedCount.value = 0;
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
|
enableMultiple.value = false;
|
||||||
},
|
},
|
||||||
child: const Text('确认'),
|
child: const Text('确认'),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -37,6 +37,9 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
_historyController.enableMultiple.listen((p0) {
|
||||||
|
setState(() {});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 选中
|
// 选中
|
||||||
|
|||||||
@ -215,7 +215,11 @@ class HistoryItem extends StatelessWidget {
|
|||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(12),
|
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: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user