Skip to content

Commit

Permalink
mod: 临时添加创作中心与编辑资料的网页版链接
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Feb 22, 2024
1 parent 9f7d800 commit 03b46bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/pages/media/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion lib/pages/member/widgets/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 03b46bf

Please sign in to comment.