feat(ui): full‑width ShadTable across app; fix rent dialog width; correct equipment pagination
- 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:
@@ -52,7 +52,7 @@ class _AppLayoutState extends State<AppLayout>
|
||||
static const double _sidebarExpandedWidth = 260.0;
|
||||
static const double _sidebarCollapsedWidth = 72.0;
|
||||
static const double _headerHeight = 64.0;
|
||||
static const double _maxContentWidth = 1440.0;
|
||||
static const double _maxContentWidth = 1600.0;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -313,8 +313,9 @@ class _AppLayoutState extends State<AppLayout>
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Container(
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: isWideScreen ? _maxContentWidth : double.infinity,
|
||||
// 최대 폭 제한을 해제하여(=무한대) 사이드바를 제외한 남은 전폭을 모두 사용
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: double.infinity,
|
||||
),
|
||||
padding: EdgeInsets.all(
|
||||
isWideScreen ? ShadcnTheme.spacing6 : ShadcnTheme.spacing4
|
||||
@@ -1267,13 +1268,13 @@ class SidebarMenu extends StatelessWidget {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.orange,
|
||||
color: ShadcnTheme.warning,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Text(
|
||||
badge,
|
||||
style: ShadcnTheme.caption.copyWith(
|
||||
color: Colors.white,
|
||||
color: ShadcnTheme.primaryForeground,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
@@ -1390,4 +1391,4 @@ class SidebarMenu extends StatelessWidget {
|
||||
return outlinedIcon;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user