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, ),