backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||
import '../equipment/controllers/equipment_history_controller.dart';
|
||||
import 'controllers/equipment_history_controller.dart';
|
||||
|
||||
class InventoryDashboard extends StatefulWidget {
|
||||
const InventoryDashboard({super.key});
|
||||
@@ -16,7 +16,7 @@ class _InventoryDashboardState extends State<InventoryDashboard> {
|
||||
super.initState();
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
final controller = context.read<EquipmentHistoryController>();
|
||||
controller.loadHistory(refresh: true);
|
||||
controller.loadStockStatus(); // 재고 현황 로드
|
||||
});
|
||||
}
|
||||
|
||||
@@ -68,8 +68,8 @@ class _InventoryDashboardState extends State<InventoryDashboard> {
|
||||
],
|
||||
),
|
||||
onPressed: () {
|
||||
controller.loadInventoryStatus();
|
||||
controller.loadWarehouseStock();
|
||||
controller.loadStockStatus();
|
||||
controller.loadHistories();
|
||||
},
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
@@ -127,7 +127,7 @@ class _InventoryDashboardState extends State<InventoryDashboard> {
|
||||
_buildStatCard(
|
||||
theme,
|
||||
title: '총 거래',
|
||||
value: '${controller.historyList.length}',
|
||||
value: '${controller.histories.length}',
|
||||
unit: '건',
|
||||
icon: Icons.history,
|
||||
color: Colors.blue,
|
||||
@@ -145,12 +145,12 @@ class _InventoryDashboardState extends State<InventoryDashboard> {
|
||||
ShadCard(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: controller.historyList.isEmpty
|
||||
child: controller.histories.isEmpty
|
||||
? const Center(
|
||||
child: Text('거래 이력이 없습니다.'),
|
||||
)
|
||||
: Column(
|
||||
children: controller.historyList.take(10).map((history) {
|
||||
children: controller.histories.take(10).map((history) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
|
||||
Reference in New Issue
Block a user