mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -73,7 +73,7 @@ class DetailItem extends StatelessWidget {
|
||||
Get.back();
|
||||
showConfirmDialog(
|
||||
context: context,
|
||||
title: '确定删除该视频?',
|
||||
title: const Text('确定删除该视频?'),
|
||||
onConfirm: onDelete,
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user