Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-22 11:16:49 +08:00
parent 17568c8c27
commit bc3ce66322
40 changed files with 135 additions and 146 deletions

View File

@@ -31,6 +31,7 @@ class VideoCardH extends StatelessWidget {
this.onTap,
this.onLongPress,
this.onViewLater,
this.onRemove,
});
final BaseVideoItemModel videoItem;
final bool showOwner;
@@ -40,6 +41,7 @@ class VideoCardH extends StatelessWidget {
final VoidCallback? onTap;
final VoidCallback? onLongPress;
final ValueChanged<int>? onViewLater;
final VoidCallback? onRemove;
@override
Widget build(BuildContext context) {
@@ -108,7 +110,6 @@ class VideoCardH extends StatelessWidget {
vertical: 5,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
AspectRatio(
@@ -188,6 +189,7 @@ class VideoCardH extends StatelessWidget {
size: 29,
iconSize: 17,
videoItem: videoItem,
onRemove: onRemove,
),
),
],

View File

@@ -245,13 +245,16 @@ class VideoCustomActions {
),
TextButton(
onPressed: () async {
Get.back();
var res = await VideoHttp.relationMod(
mid: videoItem.owner.mid!,
act: 5,
reSrc: 11,
);
Pref.setBlackMid(videoItem.owner.mid!);
Get.back();
if (res['status']) {
Pref.setBlackMid(videoItem.owner.mid!);
onRemove?.call();
}
SmartDialog.showToast(res['msg'] ?? '成功');
},
child: const Text('确认'),