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:
@@ -14,6 +14,7 @@ import 'data/datasources/remote/company_remote_datasource.dart';
|
||||
import 'data/datasources/remote/equipment_remote_datasource.dart';
|
||||
import 'data/datasources/remote/lookup_remote_datasource.dart';
|
||||
import 'data/datasources/remote/maintenance_remote_datasource.dart';
|
||||
import 'data/datasources/remote/dashboard_remote_datasource.dart';
|
||||
import 'data/datasources/remote/user_remote_datasource.dart';
|
||||
import 'data/datasources/remote/warehouse_location_remote_datasource.dart';
|
||||
import 'data/datasources/remote/warehouse_remote_datasource.dart';
|
||||
@@ -129,6 +130,7 @@ import 'core/services/lookups_service.dart';
|
||||
import 'services/administrator_service.dart';
|
||||
import 'services/user_service.dart';
|
||||
import 'services/warehouse_service.dart';
|
||||
import 'services/dashboard_service.dart';
|
||||
|
||||
// Administrator
|
||||
import 'domain/usecases/administrator_usecase.dart';
|
||||
@@ -174,6 +176,9 @@ final getIt = sl; // Alias for compatibility
|
||||
sl.registerLazySingleton<MaintenanceRemoteDataSource>(
|
||||
() => MaintenanceRemoteDataSourceImpl(),
|
||||
);
|
||||
sl.registerLazySingleton<DashboardRemoteDataSource>(
|
||||
() => DashboardRemoteDataSourceImpl(sl<ApiClient>()),
|
||||
);
|
||||
sl.registerLazySingleton<UserRemoteDataSource>(
|
||||
() => UserRemoteDataSourceImpl(sl<ApiClient>()),
|
||||
);
|
||||
@@ -192,6 +197,7 @@ final getIt = sl; // Alias for compatibility
|
||||
() => AuthRepositoryImpl(
|
||||
remoteDataSource: sl<AuthRemoteDataSource>(),
|
||||
sharedPreferences: sl<SharedPreferences>(),
|
||||
secureStorage: sl<FlutterSecureStorage>(),
|
||||
),
|
||||
);
|
||||
sl.registerLazySingleton<CompanyRepository>(
|
||||
@@ -394,6 +400,9 @@ final getIt = sl; // Alias for compatibility
|
||||
sl.registerLazySingleton<WarehouseService>(
|
||||
() => WarehouseService(),
|
||||
);
|
||||
sl.registerLazySingleton<DashboardService>(
|
||||
() => DashboardServiceImpl(sl<DashboardRemoteDataSource>()),
|
||||
);
|
||||
|
||||
// 재고 이력 관리 서비스 (새로 추가)
|
||||
sl.registerLazySingleton<InventoryHistoryService>(
|
||||
|
||||
Reference in New Issue
Block a user