feat: 대규모 코드베이스 개선 - 백엔드 통합성 강화 및 UI 일관성 완성
- CLAUDE.md 대폭 개선: 개발 가이드라인 및 프로젝트 상태 문서화 - 백엔드 API 통합: 모든 엔티티 간 Foreign Key 관계 완벽 구현 - UI 일관성 강화: shadcn_ui 컴포넌트 표준화 적용 - 데이터 모델 개선: DTO 및 모델 클래스 백엔드 스키마와 100% 일치 - 사용자 관리: 회사 연결, 중복 검사, 입력 검증 기능 추가 - 창고 관리: 우편번호 연결, 중복 검사 기능 강화 - 회사 관리: 우편번호 연결, 중복 검사 로직 구현 - 장비 관리: 불필요한 카테고리 필드 제거, 벤더-모델 관계 정리 - 우편번호 시스템: 검색 다이얼로그 Provider 버그 수정 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||
import 'package:superport/data/models/zipcode_dto.dart';
|
||||
import 'package:superport/screens/zipcode/controllers/zipcode_controller.dart';
|
||||
import 'package:superport/screens/zipcode/components/zipcode_search_filter.dart';
|
||||
import 'package:superport/screens/zipcode/components/zipcode_table.dart';
|
||||
|
||||
class ZipcodeSearchScreen extends StatefulWidget {
|
||||
const ZipcodeSearchScreen({super.key});
|
||||
final Function(ZipcodeDto)? onSelect;
|
||||
const ZipcodeSearchScreen({super.key, this.onSelect});
|
||||
|
||||
@override
|
||||
State<ZipcodeSearchScreen> createState() => _ZipcodeSearchScreenState();
|
||||
@@ -62,9 +64,9 @@ class _ZipcodeSearchScreenState extends State<ZipcodeSearchScreen> {
|
||||
});
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: theme.colorScheme.background,
|
||||
body: Column(
|
||||
return Material(
|
||||
color: theme.colorScheme.background,
|
||||
child: Column(
|
||||
children: [
|
||||
// 헤더 섹션
|
||||
Container(
|
||||
@@ -227,7 +229,13 @@ class _ZipcodeSearchScreenState extends State<ZipcodeSearchScreen> {
|
||||
onPageChanged: controller.goToPage,
|
||||
onSelect: (zipcode) {
|
||||
controller.selectZipcode(zipcode);
|
||||
_showSuccessToast('우편번호 ${zipcode.zipcode}를 선택했습니다');
|
||||
if (widget.onSelect != null) {
|
||||
// 다이얼로그로 사용될 때
|
||||
widget.onSelect!(zipcode);
|
||||
} else {
|
||||
// 일반 화면으로 사용될 때
|
||||
_showSuccessToast('우편번호 ${zipcode.zipcode}를 선택했습니다');
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user