首页和个人中心优化:去掉通知/查询按钮,个人图标改客服,移除未开发菜单项
This commit is contained in:
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
|
|||||||
|
|
||||||
_flutter.loader.load({
|
_flutter.loader.load({
|
||||||
serviceWorkerSettings: {
|
serviceWorkerSettings: {
|
||||||
serviceWorkerVersion: "3768417549" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
serviceWorkerVersion: "1103688684" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,10 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'package:lucide_icons_flutter/lucide_icons.dart';
|
import 'package:lucide_icons_flutter/lucide_icons.dart';
|
||||||
import '../../../core/theme/app_theme.dart';
|
import '../../../core/theme/app_theme.dart';
|
||||||
import '../../../core/theme/app_color_scheme.dart';
|
|
||||||
import '../../../core/theme/app_spacing.dart';
|
import '../../../core/theme/app_spacing.dart';
|
||||||
import '../../../providers/auth_provider.dart';
|
|
||||||
|
|
||||||
/// 首頁頂欄 - Logo + 搜索/通知/頭像
|
/// 首頁頂欄 - Logo + 搜索/通知/頭像
|
||||||
class HeaderBar extends StatelessWidget {
|
class HeaderBar extends StatelessWidget {
|
||||||
@@ -30,42 +27,12 @@ class HeaderBar extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
// Search button
|
// Customer service button
|
||||||
_IconButton(
|
_IconButton(
|
||||||
icon: LucideIcons.search,
|
icon: LucideIcons.headset,
|
||||||
colorScheme: colorScheme,
|
colorScheme: colorScheme,
|
||||||
onTap: () {},
|
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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -53,21 +53,6 @@ class MenuGroup1 extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
|
||||||
MenuRow(
|
|
||||||
icon: LucideIcons.lock,
|
|
||||||
iconColor: colorScheme.onSurfaceVariant,
|
|
||||||
title: '安全設置',
|
|
||||||
onTap: () => onShowComingSoon('安全設置'),
|
|
||||||
),
|
|
||||||
const Divider(height: 1),
|
|
||||||
MenuRow(
|
|
||||||
icon: LucideIcons.bell,
|
|
||||||
iconColor: colorScheme.onSurfaceVariant,
|
|
||||||
title: '消息通知',
|
|
||||||
trailing: const RedDotIndicator(),
|
|
||||||
onTap: () => onShowComingSoon('消息通知'),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -20,16 +20,6 @@ class MenuGroup2 extends StatelessWidget {
|
|||||||
// 深色模式
|
// 深色模式
|
||||||
const DarkModeRow(),
|
const DarkModeRow(),
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
// 系統設置
|
|
||||||
MenuRow(
|
|
||||||
icon: LucideIcons.settings,
|
|
||||||
iconColor: colorScheme.onSurfaceVariant,
|
|
||||||
title: '系統設置',
|
|
||||||
onTap: () {
|
|
||||||
// TODO: 系統設置
|
|
||||||
},
|
|
||||||
),
|
|
||||||
const Divider(height: 1),
|
|
||||||
// 關於我們
|
// 關於我們
|
||||||
MenuRow(
|
MenuRow(
|
||||||
icon: LucideIcons.info,
|
icon: LucideIcons.info,
|
||||||
|
|||||||
Reference in New Issue
Block a user