From 03b46bf6dfe332d318f0f2058f8f9f6e97779d52 Mon Sep 17 00:00:00 2001 From: orz12 Date: Thu, 22 Feb 2024 20:05:18 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E4=B8=B4=E6=97=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=9B=E4=BD=9C=E4=B8=AD=E5=BF=83=E4=B8=8E=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=B5=84=E6=96=99=E7=9A=84=E7=BD=91=E9=A1=B5=E7=89=88=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/media/controller.dart | 9 +++++++++ lib/pages/member/widgets/profile.dart | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/pages/media/controller.dart b/lib/pages/media/controller.dart index 68a6b193..4a9d0d7f 100644 --- a/lib/pages/media/controller.dart +++ b/lib/pages/media/controller.dart @@ -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; diff --git a/lib/pages/member/widgets/profile.dart b/lib/pages/member/widgets/profile.dart index f6359c54..2a4732bc 100644 --- a/lib/pages/member/widgets/profile.dart +++ b/lib/pages/member/widgets/profile.dart @@ -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),