mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 新增反馈渠道与Q群直达
This commit is contained in:
@@ -62,12 +62,21 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
.textTheme
|
.textTheme
|
||||||
.titleMedium!
|
.titleMedium!
|
||||||
.copyWith(height: 2)),
|
.copyWith(height: 2)),
|
||||||
subtitle: Text(
|
subtitle: Row(children: [
|
||||||
'使用Flutter开发的哔哩哔哩第三方客户端',
|
const Spacer(),
|
||||||
textAlign: TextAlign.center,
|
Text(
|
||||||
style: TextStyle(color: Theme.of(context).colorScheme.outline),
|
'使用Flutter开发的B站第三方客户端',
|
||||||
semanticsLabel: '与你一起,发现不一样的世界',
|
textAlign: TextAlign.center,
|
||||||
),
|
style: TextStyle(color: Theme.of(context).colorScheme.outline),
|
||||||
|
semanticsLabel: '与你一起,发现不一样的世界',
|
||||||
|
),
|
||||||
|
const Icon(
|
||||||
|
Icons.accessibility_new,
|
||||||
|
semanticLabel: "无障碍适配",
|
||||||
|
size: 18,
|
||||||
|
),
|
||||||
|
const Spacer(),
|
||||||
|
]),
|
||||||
),
|
),
|
||||||
Obx(
|
Obx(
|
||||||
() => ListTile(
|
() => ListTile(
|
||||||
@@ -106,7 +115,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => _aboutController.githubUrl(),
|
onTap: () => _aboutController.githubUrl(),
|
||||||
title: const Text('Github'),
|
title: const Text('Github开源仓库'),
|
||||||
trailing: Text(
|
trailing: Text(
|
||||||
'github.com/orz12/pilipala',
|
'github.com/orz12/pilipala',
|
||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
@@ -123,7 +132,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => _aboutController.qqGroup(),
|
onTap: () => _aboutController.qqGroup(),
|
||||||
title: const Text('QQ群'),
|
title: const Text('QQ群:392176105'),
|
||||||
trailing: Icon(
|
trailing: Icon(
|
||||||
Icons.arrow_forward_ios,
|
Icons.arrow_forward_ios,
|
||||||
size: 16,
|
size: 16,
|
||||||
@@ -270,10 +279,32 @@ class AboutController extends GetxController {
|
|||||||
|
|
||||||
// 问题反馈
|
// 问题反馈
|
||||||
feedback() {
|
feedback() {
|
||||||
launchUrl(
|
SmartDialog.show(
|
||||||
Uri.parse('https://github.com/orz12/pilipala/issues'),
|
useSystem: true,
|
||||||
// 系统自带浏览器打开
|
animationType: SmartAnimationType.centerFade_otherSlide,
|
||||||
mode: LaunchMode.externalApplication,
|
builder: (BuildContext context) {
|
||||||
|
return AlertDialog(
|
||||||
|
title: const Text('问题反馈'),
|
||||||
|
actions: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => launchUrl(
|
||||||
|
Uri.parse('https://github.com/orz12/pilipala/issues'),
|
||||||
|
// 系统自带浏览器打开
|
||||||
|
mode: LaunchMode.externalApplication,
|
||||||
|
),
|
||||||
|
child: const Text('GitHub Issue'),
|
||||||
|
),
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => launchUrl(
|
||||||
|
Uri.parse('https://support.qq.com/embed/phone/637735'),
|
||||||
|
// 系统自带浏览器打开
|
||||||
|
mode: LaunchMode.externalApplication,
|
||||||
|
),
|
||||||
|
child: const Text('腾讯兔小巢'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,6 +314,11 @@ class AboutController extends GetxController {
|
|||||||
const ClipboardData(text: '392176105'),
|
const ClipboardData(text: '392176105'),
|
||||||
);
|
);
|
||||||
SmartDialog.showToast('已复制QQ群号');
|
SmartDialog.showToast('已复制QQ群号');
|
||||||
|
launchUrl(
|
||||||
|
Uri.parse(
|
||||||
|
'mqqapi://card/show_pslcard?src_type=internal&version=1&uin=392176105&card_type=group&source=qrcode'),
|
||||||
|
mode: LaunchMode.externalApplication,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tg频道
|
// tg频道
|
||||||
|
|||||||
Reference in New Issue
Block a user