From 4828072299d937296dbc766b9c9d94f1473e128d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Fri, 31 Jul 2026 16:40:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=88=91=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7=E5=8D=A1=E7=89=87=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=8D=A1=E7=9B=B4=E6=8E=A5=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- lib/features/mine/mine_page.dart | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lib/features/mine/mine_page.dart b/lib/features/mine/mine_page.dart index 65f6200..f7ef872 100644 --- a/lib/features/mine/mine_page.dart +++ b/lib/features/mine/mine_page.dart @@ -76,39 +76,12 @@ class _MinePageState extends ConsumerState { @override Widget build(BuildContext context) { final member = ref.watch(memberProvider); - final auth = ref.watch(authProvider).value; - final scheme = Theme.of(context).colorScheme; - - final rawName = auth?.name?.trim() ?? ''; - final name = rawName.isEmpty ? '我的' : rawName; return Scaffold( appBar: AppBar(title: const Text('我的')), body: ListView( padding: const EdgeInsets.all(16), children: [ - Card( - color: scheme.primaryContainer.withValues(alpha: 0.4), - child: ListTile( - leading: CircleAvatar( - backgroundColor: scheme.primary, - child: Text( - name.characters.first, - style: const TextStyle(color: Colors.white), - ), - ), - title: Text(name, - style: const TextStyle( - fontSize: 17, fontWeight: FontWeight.bold)), - subtitle: Text( - member.value?.isVip == true - ? '形象会员 · ${member.value!.planName} · 有效期至 ${member.value!.expireAt}' - : '普通用户', - style: const TextStyle(fontSize: 12), - ), - ), - ), - const SizedBox(height: 12), _MemberCard( member: member, isIOS: _isIOS,