mod: 临时添加创作中心与编辑资料的网页版链接

This commit is contained in:
orz12
2024-02-22 20:05:18 +08:00
parent 9f7d800af0
commit 03b46bf6df
2 changed files with 15 additions and 1 deletions

View File

@@ -33,6 +33,15 @@ class MediaController extends GetxController {
'title': '稍后再看',
'onTap': () => Get.toNamed('/later'),
},
{
'icon': Icons.create_outlined,
'title': '创作中心(web)',
'onTap': () => Get.toNamed('/webview', parameters: {
'url': 'https://member.bilibili.com/platform/home',
'type': 'url',
'pageTitle': "创作中心(建议浏览器打开)",
}),
},
];
var userInfo;
int? mid;

View File

@@ -221,7 +221,12 @@ class ProfilePanel extends StatelessWidget {
if (ctr.ownerMid == ctr.mid && ctr.ownerMid != -1) ...[
TextButton(
onPressed: () {
SmartDialog.showToast('功能开发中 💪');
Get.toNamed('/webview', parameters: {
'url':
'https://account.bilibili.com/account/home',
'pageTitle': '编辑资料(建议浏览器打开)',
'type': 'url'
});
},
style: TextButton.styleFrom(
padding: const EdgeInsets.only(left: 80, right: 80),