refactor: UI 일관성 개선 및 테이블 구조 통일

장비관리 화면을 기준으로 전체 화면 UI 일관성 개선:

- 모든 화면 검색바/버튼/드롭다운 높이 40px 통일
- 테이블 헤더 패딩 vertical 10px, 행 패딩 vertical 4px 통일
- 배지 스타일 통일 (border 제거, opacity 0.9 적용)
- 페이지네이션 10개 이하에서도 항상 표시
- 테이블 헤더 폰트 스타일 통일 (fontSize: 13, fontWeight: w500)

각 화면별 수정사항:
1. 장비관리: 컬럼 너비 최적화, 검색 컴포넌트 높이 명시
2. 입고지 관리: 페이지네이션 조건 개선
3. 회사관리: UnifiedSearchBar 통합, 배지 스타일 개선
4. 유지보수: ListView.builder → map() 변경, 테이블 구조 재설계

키포인트 색상을 teal로 통일하여 브랜드 일관성 확보
This commit is contained in:
JiWoong Sul
2025-08-08 18:03:07 +09:00
parent 844c7bd92f
commit b8f10dd588
17 changed files with 2065 additions and 1035 deletions

View File

@@ -3,58 +3,63 @@ import 'package:google_fonts/google_fonts.dart';
/// shadcn/ui 스타일 테마 시스템
class ShadcnTheme {
// shadcn/ui 색상 시스템
// Teal 기반 색상 시스템
static const Color background = Color(0xFFFFFFFF);
static const Color foreground = Color(0xFF020817);
static const Color foreground = Color(0xFF0F172A);
static const Color card = Color(0xFFFFFFFF);
static const Color cardForeground = Color(0xFF020817);
static const Color cardForeground = Color(0xFF0F172A);
static const Color popover = Color(0xFFFFFFFF);
static const Color popoverForeground = Color(0xFF020817);
static const Color primary = Color(0xFF0F172A);
static const Color primaryForeground = Color(0xFFF8FAFC);
static const Color secondary = Color(0xFFF1F5F9);
static const Color secondaryForeground = Color(0xFF0F172A);
static const Color muted = Color(0xFFF1F5F9);
static const Color mutedForeground = Color(0xFF64748B);
static const Color accent = Color(0xFFF1F5F9);
static const Color accentForeground = Color(0xFF0F172A);
static const Color destructive = Color(0xFFEF4444);
static const Color destructiveForeground = Color(0xFFF8FAFC);
static const Color border = Color(0xFFE2E8F0);
static const Color input = Color(0xFFE2E8F0);
static const Color ring = Color(0xFF020817);
static const Color popoverForeground = Color(0xFF0F172A);
static const Color primary = Color(0xFF0D9488); // teal-600
static const Color primaryForeground = Color(0xFFFFFFFF);
static const Color secondary = Color(0xFFF0FDFA); // teal-50
static const Color secondaryForeground = Color(0xFF134E4A); // teal-900
static const Color muted = Color(0xFFF1F5F9); // slate-100
static const Color mutedForeground = Color(0xFF64748B); // slate-500
static const Color accent = Color(0xFF14B8A6); // teal-500
static const Color accentForeground = Color(0xFFFFFFFF);
static const Color destructive = Color(0xFFEF4444); // red-500
static const Color destructiveForeground = Color(0xFFFFFFFF);
static const Color border = Color(0xFFE5E7EB); // gray-200 (기본 border는 연한 회색)
static const Color input = Color(0xFFE5E7EB); // gray-200
static const Color ring = Color(0xFF14B8A6); // teal-500
static const Color radius = Color(0xFF000000); // 사용하지 않음
// 그라데이션 색상
static const Color gradient1 = Color(0xFF6366F1);
static const Color gradient2 = Color(0xFF8B5CF6);
static const Color gradient3 = Color(0xFFEC4899);
// Teal 그라데이션 색상
static const Color gradient1 = Color(0xFF14B8A6); // teal-500
static const Color gradient2 = Color(0xFF0D9488); // teal-600
static const Color gradient3 = Color(0xFF0F766E); // teal-700
// 상태 색상
static const Color success = Color(0xFF10B981);
static const Color warning = Color(0xFFF59E0B);
static const Color error = Color(0xFFEF4444);
static const Color info = Color(0xFF3B82F6);
static const Color success = Color(0xFF10B981); // emerald-500
static const Color warning = Color(0xFFF59E0B); // amber-500
static const Color error = Color(0xFFEF4444); // red-500
static const Color info = Color(0xFF0891B2); // cyan-600
// 추가 색상 (회사 구분용)
static const Color blue = Color(0xFF3B82F6); // blue-500
static const Color purple = Color(0xFF8B5CF6); // purple-500
static const Color green = Color(0xFF22C55E); // green-500
// 그림자 설정
static List<BoxShadow> get cardShadow => [
BoxShadow(
color: Colors.black.withOpacity(0.05),
blurRadius: 6,
color: primary.withValues(alpha: 0.08),
blurRadius: 8,
offset: const Offset(0, 2),
),
BoxShadow(
color: Colors.black.withOpacity(0.1),
blurRadius: 20,
offset: const Offset(0, 10),
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 16,
offset: const Offset(0, 8),
),
];
static List<BoxShadow> get buttonShadow => [
BoxShadow(
color: Colors.black.withOpacity(0.1),
blurRadius: 3,
offset: const Offset(0, 1),
color: primary.withValues(alpha: 0.2),
blurRadius: 4,
offset: const Offset(0, 2),
),
];
@@ -81,37 +86,37 @@ class ShadcnTheme {
static const double radius3xl = 24.0;
static const double radiusFull = 9999.0;
// 타이포그래피 시스템
// 타이포그래피 시스템 (통일된 크기)
static TextStyle get headingH1 => GoogleFonts.inter(
fontSize: 36,
fontWeight: FontWeight.w800,
color: foreground,
letterSpacing: -0.02,
);
static TextStyle get headingH2 => GoogleFonts.inter(
fontSize: 30,
fontSize: 32,
fontWeight: FontWeight.w700,
color: foreground,
letterSpacing: -0.02,
);
static TextStyle get headingH3 => GoogleFonts.inter(
static TextStyle get headingH2 => GoogleFonts.inter(
fontSize: 24,
fontWeight: FontWeight.w600,
color: foreground,
letterSpacing: -0.01,
);
static TextStyle get headingH4 => GoogleFonts.inter(
static TextStyle get headingH3 => GoogleFonts.inter(
fontSize: 20,
fontWeight: FontWeight.w600,
fontWeight: FontWeight.w500,
color: foreground,
letterSpacing: -0.01,
);
static TextStyle get bodyLarge => GoogleFonts.inter(
static TextStyle get headingH4 => GoogleFonts.inter(
fontSize: 16,
fontWeight: FontWeight.w500,
color: foreground,
letterSpacing: 0,
);
static TextStyle get bodyLarge => GoogleFonts.inter(
fontSize: 14,
fontWeight: FontWeight.w400,
color: foreground,
letterSpacing: 0,
@@ -194,7 +199,7 @@ class ShadcnTheme {
foregroundColor: foreground,
elevation: 0,
scrolledUnderElevation: 1,
shadowColor: Colors.black.withOpacity(0.1),
shadowColor: Colors.black.withValues(alpha: 0.1),
surfaceTintColor: Colors.transparent,
titleTextStyle: headingH4,
iconTheme: const IconThemeData(color: foreground),
@@ -206,7 +211,7 @@ class ShadcnTheme {
borderRadius: BorderRadius.circular(radiusLg),
side: const BorderSide(color: border, width: 1),
),
shadowColor: Colors.black.withOpacity(0.05),
shadowColor: Colors.black.withValues(alpha: 0.05),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(