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,