* opt: danmaku weight

* opt: cache clean

* opt: level img

* opt: play icon

* opt: svg big-vip

* opt: webview ua

* opt: simple dialog

* feat: export vtt

* tweak

* opt: mapIndexed

* feat: more subtitle

* refa: settings page

* feat: codec list options

* drawPath

Signed-off-by: dom <githubaccount56556@proton.me>

* custom dialog option

Signed-off-by: dom <githubaccount56556@proton.me>

* update

Signed-off-by: dom <githubaccount56556@proton.me>

* Revert "drawPath"

This reverts commit e8a4b19f0f.

* opt: _initStreamIndex

* fix: avoid gap

* fix: scale [skip ci]

* fix: hide repost menu not login

* tweaks

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-06-26 02:51:41 +00:00
committed by GitHub
parent 3dee6a85e5
commit 9d94c72e95
96 changed files with 2268 additions and 2143 deletions

View File

@@ -1,6 +1,7 @@
import 'dart:async';
import 'package:PiliPlus/common/constants.dart';
import 'package:PiliPlus/common/widgets/dialog/simple_dialog_option.dart';
import 'package:PiliPlus/grpc/audio.dart';
import 'package:PiliPlus/grpc/bilibili/app/listener/v1.pb.dart'
show
@@ -533,62 +534,45 @@ class AudioController extends GetxController
: '${HttpString.baseUrl}/audio/au$oid';
showDialog(
context: context,
builder: (_) => AlertDialog(
builder: (_) => SimpleDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
dense: true,
title: const Text(
'复制链接',
style: TextStyle(fontSize: 14),
),
onTap: () {
children: [
DialogOption(
child: const Text('复制链接', style: TextStyle(fontSize: 14)),
onPressed: () {
Get.back();
Utils.copyText(audioUrl);
},
),
DialogOption(
child: const Text('其它app打开', style: TextStyle(fontSize: 14)),
onPressed: () {
Get.back();
PageUtils.launchURL(audioUrl);
},
),
if (PlatformUtils.isMobile)
DialogOption(
child: const Text('分享视频', style: TextStyle(fontSize: 14)),
onPressed: () {
Get.back();
Utils.copyText(audioUrl);
if (audioItem.value case DetailItem(
:final arc,
:final owner,
)) {
ShareUtils.shareText(
'${arc.title} '
'UP主: ${owner.name}'
' - $audioUrl',
);
}
},
),
ListTile(
dense: true,
title: const Text(
'其它app打开',
style: TextStyle(fontSize: 14),
),
onTap: () {
Get.back();
PageUtils.launchURL(audioUrl);
},
),
if (PlatformUtils.isMobile)
ListTile(
dense: true,
title: const Text(
'分享视频',
style: TextStyle(fontSize: 14),
),
onTap: () {
Get.back();
if (audioItem.value case DetailItem(
:final arc,
:final owner,
)) {
ShareUtils.shareText(
'${arc.title} '
'UP主: ${owner.name}'
' - $audioUrl',
);
}
},
),
ListTile(
dense: true,
title: const Text(
'分享至动态',
style: TextStyle(fontSize: 14),
),
onTap: () {
if (isLogin)
DialogOption(
child: const Text('分享至动态', style: TextStyle(fontSize: 14)),
onPressed: () {
Get.back();
if (audioItem.value case DetailItem(
:final arc,
@@ -609,40 +593,35 @@ class AudioController extends GetxController
}
},
),
if (isUgc)
ListTile(
dense: true,
title: const Text(
'分享至消息',
style: TextStyle(fontSize: 14),
),
onTap: () {
Get.back();
if (audioItem.value case DetailItem(
:final arc,
:final owner,
)) {
try {
PageUtils.pmShare(
context,
content: {
"id": oid.toString(),
"title": arc.title,
"headline": arc.title,
"source": 5,
"thumb": arc.cover,
"author": owner.name,
"author_id": owner.mid.toString(),
},
);
} catch (e) {
SmartDialog.showToast(e.toString());
}
if (isUgc && isLogin)
DialogOption(
child: const Text('分享至消息', style: TextStyle(fontSize: 14)),
onPressed: () {
Get.back();
if (audioItem.value case DetailItem(
:final arc,
:final owner,
)) {
try {
PageUtils.pmShare(
context,
content: {
"id": oid.toString(),
"title": arc.title,
"headline": arc.title,
"source": 5,
"thumb": arc.cover,
"author": owner.name,
"author_id": owner.mid.toString(),
},
);
} catch (e) {
SmartDialog.showToast(e.toString());
}
},
),
],
),
}
},
),
],
),
);
}