feat(ui): full‑width ShadTable across app; fix rent dialog width; correct equipment pagination
Some checks failed
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled
Flutter Test & Quality Check / Build APK (push) Has been cancelled

- ShadTable: ensure full-width via LayoutBuilder+ConstrainedBox minWidth
- BaseListScreen: default data area padding = 0 for table edge-to-edge
- Vendor/Model/User/Company/Inventory/Zipcode: set columnSpanExtent per column
  and add final filler column to absorb remaining width; pin date/status/actions
  widths; ensure date text is single-line
- Equipment: unify card/border style; define fixed column widths + filler;
  increase checkbox column to 56px to avoid overflow
- Rent list: migrate to ShadTable.list with fixed widths + filler column
- Rent form dialog: prevent infinite width by bounding ShadProgress with
  SizedBox and remove Expanded from option rows; add safe selectedOptionBuilder
- Admin list: fix const with non-const argument in table column extents
- Services/Controller: remove hardcoded perPage=10; use BaseListController
  perPage; trust server meta (total/totalPages) in equipment pagination
- widgets/shad_table: ConstrainedBox(minWidth=viewport) so table stretches

Run: flutter analyze → 0 errors (warnings remain).
This commit is contained in:
JiWoong Sul
2025-09-09 22:38:08 +09:00
parent 655d473413
commit 49b203d366
67 changed files with 2305 additions and 1933 deletions

View File

@@ -732,7 +732,7 @@ class _EquipmentOutFormScreenState extends State<EquipmentOutFormScreen> {
// 회사 이름을 표시하는 위젯 (지점 포함)
Widget _buildCompanyDropdownItem(String item, EquipmentOutFormController controller) {
final TextStyle defaultStyle = TextStyle(
color: Colors.black87,
color: ShadcnTheme.foreground,
fontSize: 14,
fontWeight: FontWeight.normal,
);
@@ -758,7 +758,7 @@ class _EquipmentOutFormScreenState extends State<EquipmentOutFormScreen> {
child: Icon(
Icons.subdirectory_arrow_right,
size: 16,
color: Colors.grey,
color: ShadcnTheme.mutedForeground,
),
alignment: PlaceholderAlignment.middle,
),
@@ -770,8 +770,8 @@ class _EquipmentOutFormScreenState extends State<EquipmentOutFormScreen> {
TextSpan(text: ' ', style: defaultStyle),
TextSpan(
text: branchName, // 지점명
style: const TextStyle(
color: Colors.indigo,
style: TextStyle(
color: ShadcnTheme.primary,
fontWeight: FontWeight.w500,
fontSize: 14,
),
@@ -789,7 +789,7 @@ class _EquipmentOutFormScreenState extends State<EquipmentOutFormScreen> {
style: defaultStyle, // 기본 스타일 설정
children: [
WidgetSpan(
child: Icon(Icons.business, size: 16, color: Colors.black54),
child: Icon(Icons.business, size: 16, color: ShadcnTheme.mutedForeground),
alignment: PlaceholderAlignment.middle,
),
TextSpan(text: ' ', style: defaultStyle),