opt: multi select

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-05 14:45:20 +08:00
parent e4b8dfcada
commit 1643db4656
10 changed files with 24 additions and 25 deletions

View File

@@ -135,7 +135,7 @@ class LaterController extends MultiSelectController {
onPressed: () async {
Get.back();
_onDelete(((loadingState.value as Success).response as List)
.where((e) => e.checked)
.where((e) => e.checked == true)
.toList());
},
child: const Text('确认'),

View File

@@ -172,7 +172,7 @@ class _LaterPageState extends State<LaterPage> {
child: IgnorePointer(
child: LayoutBuilder(
builder: (context, constraints) => AnimatedOpacity(
opacity: videoItem.checked ? 1 : 0,
opacity: videoItem.checked == true ? 1 : 0,
duration: const Duration(milliseconds: 200),
child: Container(
alignment: Alignment.center,
@@ -187,7 +187,7 @@ class _LaterPageState extends State<LaterPage> {
width: 34,
height: 34,
child: AnimatedScale(
scale: videoItem.checked ? 1 : 0,
scale: videoItem.checked == true ? 1 : 0,
duration: const Duration(milliseconds: 250),
curve: Curves.easeInOut,
child: IconButton(