Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-23 17:45:23 +08:00
parent 0957dfc66e
commit 2220372e4f
43 changed files with 99 additions and 96 deletions

View File

@@ -7,6 +7,7 @@ import 'package:PiliPlus/pages/common/multi_select/base.dart'
import 'package:PiliPlus/services/download/download_service.dart';
import 'package:PiliPlus/utils/extension/iterable_ext.dart';
import 'package:PiliPlus/utils/storage.dart';
import 'package:flutter/widgets.dart' show Text;
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
@@ -76,7 +77,7 @@ class DownloadPageController extends GetxController
void onRemove() {
showConfirmDialog(
context: Get.context!,
title: '确定删除选中视频?',
title: const Text('确定删除选中视频?'),
onConfirm: () async {
SmartDialog.showLoading();
final watchProgress = GStorage.watchProgress;

View File

@@ -198,7 +198,7 @@ class _DownloadDetailPageState extends State<DownloadDetailPage>
void onRemove() {
showConfirmDialog(
context: context,
title: '确定删除选中视频?',
title: const Text('确定删除选中视频?'),
onConfirm: () async {
SmartDialog.showLoading();
final watchProgress = GStorage.watchProgress;

View File

@@ -73,7 +73,7 @@ class DetailItem extends StatelessWidget {
Get.back();
showConfirmDialog(
context: context,
title: '确定删除该视频?',
title: const Text('确定删除该视频?'),
onConfirm: onDelete,
);
},

View File

@@ -109,7 +109,7 @@ class _DownloadingPageState extends State<DownloadingPage>
void onRemove() {
showConfirmDialog(
context: context,
title: '确定删除选中视频?',
title: const Text('确定删除选中视频?'),
onConfirm: () async {
SmartDialog.showLoading();
final allChecked = this.allChecked.toSet();

View File

@@ -6,6 +6,7 @@ import 'package:PiliPlus/pages/common/multi_select/base.dart'
import 'package:PiliPlus/pages/common/search/common_search_controller.dart';
import 'package:PiliPlus/services/download/download_service.dart';
import 'package:PiliPlus/utils/storage.dart';
import 'package:flutter/widgets.dart' show Text;
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
@@ -52,7 +53,7 @@ class DownloadSearchController
void onRemove() {
showConfirmDialog(
context: Get.context!,
title: '确定删除选中视频?',
title: const Text('确定删除选中视频?'),
onConfirm: () async {
SmartDialog.showLoading();
final allChecked = this.allChecked.toSet();

View File

@@ -248,7 +248,7 @@ class _DownloadPageState extends State<DownloadPage> {
Get.back();
showConfirmDialog(
context: context,
title: '确定删除?',
title: const Text('确定删除?'),
onConfirm: () async {
await GStorage.watchProgress.deleteAll(
pageInfo.entries.map((e) => e.cid.toString()),