首页和个人中心优化:去掉通知/查询按钮,个人图标改客服,移除未开发菜单项

This commit is contained in:
2026-04-16 11:58:04 +08:00
parent 1793fb727e
commit 463373cbe9
5 changed files with 33215 additions and 33310 deletions

View File

@@ -1,10 +1,7 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../../core/theme/app_theme.dart';
import '../../../core/theme/app_color_scheme.dart';
import '../../../core/theme/app_spacing.dart';
import '../../../providers/auth_provider.dart';
/// 首頁頂欄 - Logo + 搜索/通知/頭像
class HeaderBar extends StatelessWidget {
@@ -30,42 +27,12 @@ class HeaderBar extends StatelessWidget {
),
),
const Spacer(),
// Search button
// Customer service button
_IconButton(
icon: LucideIcons.search,
icon: LucideIcons.headset,
colorScheme: colorScheme,
onTap: () {},
),
const SizedBox(width: AppSpacing.sm),
// Bell button
_IconButton(
icon: LucideIcons.bell,
colorScheme: colorScheme,
onTap: () {},
),
const SizedBox(width: AppSpacing.sm),
// Avatar
Consumer<AuthProvider>(
builder: (context, auth, _) {
final username = auth.user?.username ?? '';
final initial = username.isNotEmpty ? username[0].toUpperCase() : '?';
return Container(
width: 32,
height: 32,
decoration: BoxDecoration(
color: colorScheme.primary,
shape: BoxShape.circle,
),
alignment: Alignment.center,
child: Text(
initial,
style: AppTextStyles.headlineMedium(context).copyWith(
color: AppColorScheme.darkOnPrimary,
),
),
);
},
),
],
),
);