From 3fd47f4d7b1832c69d4f7ae6771c3d6368d414c1 Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Wed, 20 May 2026 16:26:41 +0800 Subject: [PATCH] =?UTF-8?q?style:=20improve=20list=20layout=20=E2=80=94=20?= =?UTF-8?q?larger=20fonts,=20adjusted=20column=20widths,=20center=20alignm?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boxing number module: - Data row base font size 12→15, quantity column / edit mode unified to 15 - Work order column width flex 24→30, quantity column flex 14→23, action column 64px→54px - Multi-code boxing total row column width flex 22→26 - Center-align all table headers and data rows Shelf registration module: - Data row base font size 12→15 - Center-align all table headers and data rows (location number changed from right-align to center) Co-Authored-By: Claude Opus 4.6 --- lib/pages/boxing_page.dart | 46 +++++++++++++++++--------------- lib/pages/registration_page.dart | 12 +++++---- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/lib/pages/boxing_page.dart b/lib/pages/boxing_page.dart index da2115f..7e32364 100644 --- a/lib/pages/boxing_page.dart +++ b/lib/pages/boxing_page.dart @@ -1717,14 +1717,14 @@ class _BoxingPageState extends State with WidgetsBindingObserver { ), child: Row( children: [ - const Expanded(flex: 22, child: Text('箱号', style: _headerStyle)), - const Expanded(flex: 24, child: Text('工令号', style: _headerStyle)), + const Expanded(flex: 22, child: Text('箱号', textAlign: TextAlign.center, style: _headerStyle)), + const Expanded(flex: 30, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)), const Expanded( - flex: 14, + flex: 23, child: Text('数量', textAlign: TextAlign.center, style: _headerStyle), ), const SizedBox( - width: 64, + width: 54, child: Text('操作', textAlign: TextAlign.center, style: _headerStyle), ), ], @@ -1749,7 +1749,7 @@ class _BoxingPageState extends State with WidgetsBindingObserver { } final rowStyle = TextStyle( - fontSize: 12, + fontSize: 15, fontWeight: FontWeight.w500, color: Colors.black87, ); @@ -1772,20 +1772,22 @@ class _BoxingPageState extends State with WidgetsBindingObserver { flex: 22, child: Text( '${item.boxNo} 号箱', + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle.copyWith(fontWeight: FontWeight.w700), ), ), Expanded( - flex: 24, + flex: 30, child: Text( _workOrderNo ?? '--', + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle, ), ), Expanded( - flex: 14, + flex: 23, child: editing ? SizedBox( width: 52, @@ -1816,7 +1818,7 @@ class _BoxingPageState extends State with WidgetsBindingObserver { ), ), style: const TextStyle( - fontSize: 14, + fontSize: 15, fontWeight: FontWeight.w700, ), ), @@ -1825,14 +1827,14 @@ class _BoxingPageState extends State with WidgetsBindingObserver { '${item.quantity} 件', textAlign: TextAlign.center, style: TextStyle( - fontSize: 12, + fontSize: 15, fontWeight: FontWeight.w600, color: deleting ? Colors.red : Colors.black54, ), ), ), SizedBox( - width: 64, + width: 54, child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ @@ -2268,14 +2270,14 @@ class _BoxingPageState extends State with WidgetsBindingObserver { ), child: Row( children: [ - const Expanded(flex: 22, child: Text('总排号', style: _headerStyle)), - const Expanded(flex: 24, child: Text('工令号', style: _headerStyle)), + const Expanded(flex: 26, child: Text('总排号', textAlign: TextAlign.center, style: _headerStyle)), + const Expanded(flex: 30, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)), const Expanded( - flex: 14, + flex: 23, child: Text('数量', textAlign: TextAlign.center, style: _headerStyle), ), const SizedBox( - width: 64, + width: 54, child: Text('操作', textAlign: TextAlign.center, style: _headerStyle), ), ], @@ -2304,7 +2306,7 @@ class _BoxingPageState extends State with WidgetsBindingObserver { } final rowStyle = TextStyle( - fontSize: 12, + fontSize: 15, fontWeight: FontWeight.w500, color: Colors.black87, ); @@ -2324,23 +2326,25 @@ class _BoxingPageState extends State with WidgetsBindingObserver { child: Row( children: [ Expanded( - flex: 22, + flex: 26, child: Text( item.zongpaiNo, + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle.copyWith(fontWeight: FontWeight.w700), ), ), Expanded( - flex: 24, + flex: 30, child: Text( item.workOrderNo ?? '--', + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle, ), ), Expanded( - flex: 14, + flex: 23, child: editing ? SizedBox( width: 52, @@ -2370,7 +2374,7 @@ class _BoxingPageState extends State with WidgetsBindingObserver { ), ), style: const TextStyle( - fontSize: 13, + fontSize: 15, fontWeight: FontWeight.w600, ), ), @@ -2379,14 +2383,14 @@ class _BoxingPageState extends State with WidgetsBindingObserver { '${item.quantity} / $totalText', textAlign: TextAlign.center, style: TextStyle( - fontSize: 12, + fontSize: 15, fontWeight: FontWeight.w600, color: deleting ? Colors.red : Colors.green.shade700, ), ), ), SizedBox( - width: 64, + width: 54, child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ diff --git a/lib/pages/registration_page.dart b/lib/pages/registration_page.dart index 989b846..9e1c1f3 100644 --- a/lib/pages/registration_page.dart +++ b/lib/pages/registration_page.dart @@ -1018,8 +1018,8 @@ class _RegistrationPageState extends State { ), child: const Row( children: [ - Expanded(flex: 22, child: Text('总排号', style: _headerStyle)), - Expanded(flex: 18, child: Text('工令号', style: _headerStyle)), + Expanded(flex: 22, child: Text('总排号', textAlign: TextAlign.center, style: _headerStyle)), + Expanded(flex: 18, child: Text('工令号', textAlign: TextAlign.center, style: _headerStyle)), Expanded( flex: 12, child: Text( @@ -1032,7 +1032,7 @@ class _RegistrationPageState extends State { flex: 28, child: Text( '货位号', - textAlign: TextAlign.right, + textAlign: TextAlign.center, style: _headerStyle, ), ), @@ -1148,7 +1148,7 @@ class _RegistrationPageState extends State { Widget _buildListRow(PaichaOverviewItem item, {required bool isScanned}) { final rowStyle = TextStyle( - fontSize: 12, + fontSize: 15, fontWeight: isScanned ? FontWeight.w700 : FontWeight.w500, color: Colors.black87, ); @@ -1185,6 +1185,7 @@ class _RegistrationPageState extends State { flex: 22, child: Text( item.zongpaiNo, + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle, ), @@ -1193,6 +1194,7 @@ class _RegistrationPageState extends State { flex: 18, child: Text( item.workOrderNo ?? '--', + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle, ), @@ -1210,7 +1212,7 @@ class _RegistrationPageState extends State { flex: 28, child: Text( item.locationCode ?? '\u2014', - textAlign: TextAlign.right, + textAlign: TextAlign.center, overflow: TextOverflow.ellipsis, style: rowStyle, ),