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:
JiWoong Sul
2025-09-02 19:51:40 +09:00
parent 650cd4be55
commit c419f8f458
149 changed files with 12934 additions and 3644 deletions

View File

@@ -5,6 +5,7 @@ import 'package:superport/utils/validators.dart';
import 'package:flutter/services.dart';
import 'package:superport/screens/user/controllers/user_form_controller.dart';
import 'package:superport/utils/formatters/korean_phone_formatter.dart';
import 'package:superport/screens/common/widgets/standard_dropdown.dart';
// 사용자 등록/수정 화면 (UI만 담당, 상태/로직 분리)
class UserFormScreen extends StatefulWidget {
@@ -213,40 +214,35 @@ class _UserFormScreenState extends State<UserFormScreen> {
);
}
// 회사 선택 드롭다운
// 회사 선택 드롭다운 (StandardDropdown 사용)
Widget _buildCompanyDropdown(UserFormController controller) {
return Padding(
padding: const EdgeInsets.only(bottom: 16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text('회사 *', style: TextStyle(fontWeight: FontWeight.bold)),
const SizedBox(height: 4),
controller.isLoadingCompanies
? const ShadProgress()
: ShadSelect<int?>(
selectedOptionBuilder: (context, value) {
if (value == null) {
return const Text('회사를 선택하세요');
}
final companyName = controller.companies[value];
return Text(companyName ?? '알 수 없는 회사 (ID: $value)');
},
placeholder: const Text('회사를 선택하세요'),
initialValue: controller.companiesId,
options: controller.companies.entries.map((entry) {
return ShadOption(
value: entry.key,
child: Text(entry.value),
);
}).toList(),
onChanged: (value) {
if (value != null) {
controller.companiesId = value;
}
},
),
],
child: StandardIntDropdown<MapEntry<int, String>>(
label: '회사',
isRequired: true,
items: controller.companies.entries.toList(),
isLoading: controller.isLoadingCompanies,
error: controller.companiesError,
onRetry: () => controller.retryLoadCompanies(),
selectedValue: controller.companiesId != null
? controller.companies.entries
.where((entry) => entry.key == controller.companiesId)
.firstOrNull
: null,
onChanged: (MapEntry<int, String>? selectedCompany) {
controller.companiesId = selectedCompany?.key;
},
itemBuilder: (MapEntry<int, String> company) => Text(company.value),
selectedItemBuilder: (MapEntry<int, String> company) => Text(company.value),
idExtractor: (MapEntry<int, String> company) => company.key,
placeholder: '회사를 선택하세요',
validator: (MapEntry<int, String>? value) {
if (value == null) {
return '회사를 선택해 주세요';
}
return null;
},
),
);
}