refactor: 重构多个页面布局与样式,修复溢出问题

调整了勘测任务页、项目页的顶部栏样式,优化了底部导航栏的底部间距
重构客户卡片布局,使用 IntrinsicHeight 避免高度溢出,添加 FittedBox 防止文本溢出
统一了部分代码的换行格式,提升代码可读性
This commit is contained in:
andyesfly committed 2026-10-02 17:54:18 +08:00
1 parent f61b7bf90b
commit e14d371cc8
4 files changed
+142 -138

No files matched your search

@@ -131,11 +131,9 @@ class _ProjectTabState extends ConsumerState<ProjectTab> {
});
return XPageShell(
topBar: XTopBar.brand(
title: '鑫潼智电',
trailingColor: AppColors.primary,
),
topBar: XTopBar.brand(title: '鑫潼智电', trailingColor: AppColors.primary),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_buildPageHead(),
_buildSearchBar(),
@@ -297,7 +295,11 @@ class _ProjectTabState extends ConsumerState<ProjectTab> {
),
),
const SizedBox(width: 12),
const XIcon('clock', size: 15, color: AppColors.textMuted),
const XIcon(
'clock',
size: 15,
color: AppColors.textMuted,
),
const SizedBox(width: 4),
Text(
formatDate(p.registerTime),
@@ -327,4 +329,4 @@ class _ProjectTabState extends ConsumerState<ProjectTab> {
),
);
}
}
}