feat: 글래스모피즘 디자인 시스템 및 색상 가이드 전면 적용
- @doc/color.md 가이드라인에 따른 색상 시스템 전면 개편 - 딥 블루(#2563EB), 스카이 블루(#60A5FA) 메인 컬러로 변경 - 모든 화면과 위젯에 글래스모피즘 효과 일관성 있게 적용 - darkNavy, navyGray 등 새로운 텍스트 색상 체계 도입 - 공통 스낵바 및 다이얼로그 컴포넌트 추가 - Claude AI 프로젝트 컨텍스트 파일(CLAUDE.md) 추가 영향받은 컴포넌트: - 10개 스크린 (main, settings, detail, splash 등) - 30개 이상 위젯 (buttons, cards, forms 등) - 테마 시스템 (AppColors, AppTheme) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import '../widgets/add_subscription/add_subscription_header.dart';
|
||||
import '../widgets/add_subscription/add_subscription_form.dart';
|
||||
import '../widgets/add_subscription/add_subscription_event_section.dart';
|
||||
import '../widgets/add_subscription/add_subscription_save_button.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
|
||||
/// 새로운 구독을 추가하는 화면
|
||||
class AddSubscriptionScreen extends StatefulWidget {
|
||||
@@ -44,7 +45,7 @@ class _AddSubscriptionScreenState extends State<AddSubscriptionScreen>
|
||||
_controller.scrollController.addListener(_onScroll);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFF8FAFC),
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
extendBodyBehindAppBar: true,
|
||||
appBar: AddSubscriptionAppBar(
|
||||
controller: _controller,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../providers/app_lock_provider.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
|
||||
class AppLockScreen extends StatelessWidget {
|
||||
const AppLockScreen({super.key});
|
||||
@@ -12,25 +13,26 @@ class AppLockScreen extends StatelessWidget {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(
|
||||
Icon(
|
||||
Icons.lock_outline,
|
||||
size: 80,
|
||||
color: Colors.grey,
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
const Text(
|
||||
Text(
|
||||
'앱이 잠겨 있습니다',
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: AppColors.darkNavy,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const Text(
|
||||
Text(
|
||||
'생체 인증으로 잠금을 해제하세요',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: Colors.grey,
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
@@ -40,8 +42,14 @@ class AppLockScreen extends StatelessWidget {
|
||||
final success = await appLock.authenticate();
|
||||
if (!success && context.mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('인증에 실패했습니다. 다시 시도해주세요.'),
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'인증에 실패했습니다. 다시 시도해주세요.',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.dangerColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../providers/category_provider.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
|
||||
class CategoryManagementScreen extends StatefulWidget {
|
||||
const CategoryManagementScreen({super.key});
|
||||
@@ -41,8 +42,13 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('카테고리 관리'),
|
||||
backgroundColor: const Color(0xFF1976D2),
|
||||
title: Text(
|
||||
'카테고리 관리',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.primaryColor,
|
||||
),
|
||||
body: Consumer<CategoryProvider>(
|
||||
builder: (context, provider, child) {
|
||||
@@ -59,8 +65,11 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
children: [
|
||||
TextFormField(
|
||||
controller: _nameController,
|
||||
decoration: const InputDecoration(
|
||||
decoration: InputDecoration(
|
||||
labelText: '카테고리 이름',
|
||||
labelStyle: TextStyle(
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
),
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
@@ -72,20 +81,23 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
const SizedBox(height: 16),
|
||||
DropdownButtonFormField<String>(
|
||||
value: _selectedColor,
|
||||
decoration: const InputDecoration(
|
||||
decoration: InputDecoration(
|
||||
labelText: '색상 선택',
|
||||
labelStyle: TextStyle(
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
),
|
||||
items: const [
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
value: '#1976D2', child: Text('파란색')),
|
||||
value: '#1976D2', child: Text('파란색', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: '#4CAF50', child: Text('초록색')),
|
||||
value: '#4CAF50', child: Text('초록색', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: '#FF9800', child: Text('주황색')),
|
||||
value: '#FF9800', child: Text('주황색', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: '#F44336', child: Text('빨간색')),
|
||||
value: '#F44336', child: Text('빨간색', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: '#9C27B0', child: Text('보라색')),
|
||||
value: '#9C27B0', child: Text('보라색', style: TextStyle(color: AppColors.darkNavy))),
|
||||
],
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
@@ -96,19 +108,22 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
const SizedBox(height: 16),
|
||||
DropdownButtonFormField<String>(
|
||||
value: _selectedIcon,
|
||||
decoration: const InputDecoration(
|
||||
decoration: InputDecoration(
|
||||
labelText: '아이콘 선택',
|
||||
labelStyle: TextStyle(
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
),
|
||||
items: const [
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
value: 'subscriptions', child: Text('구독')),
|
||||
DropdownMenuItem(value: 'movie', child: Text('영화')),
|
||||
value: 'subscriptions', child: Text('구독', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(value: 'movie', child: Text('영화', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: 'music_note', child: Text('음악')),
|
||||
value: 'music_note', child: Text('음악', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: 'fitness_center', child: Text('운동')),
|
||||
value: 'fitness_center', child: Text('운동', style: TextStyle(color: AppColors.darkNavy))),
|
||||
DropdownMenuItem(
|
||||
value: 'shopping_cart', child: Text('쇼핑')),
|
||||
value: 'shopping_cart', child: Text('쇼핑', style: TextStyle(color: AppColors.darkNavy))),
|
||||
],
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
@@ -119,7 +134,12 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
const SizedBox(height: 16),
|
||||
ElevatedButton(
|
||||
onPressed: _addCategory,
|
||||
child: const Text('카테고리 추가'),
|
||||
child: Text(
|
||||
'카테고리 추가',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -141,7 +161,12 @@ class _CategoryManagementScreenState extends State<CategoryManagementScreen> {
|
||||
color: Color(
|
||||
int.parse(category.color.replaceAll('#', '0xFF'))),
|
||||
),
|
||||
title: Text(category.name),
|
||||
title: Text(
|
||||
category.name,
|
||||
style: TextStyle(
|
||||
color: AppColors.darkNavy,
|
||||
),
|
||||
),
|
||||
trailing: IconButton(
|
||||
icon: const Icon(Icons.delete),
|
||||
onPressed: () async {
|
||||
|
||||
@@ -6,6 +6,7 @@ import '../widgets/detail/detail_form_section.dart';
|
||||
import '../widgets/detail/detail_event_section.dart';
|
||||
import '../widgets/detail/detail_url_section.dart';
|
||||
import '../widgets/detail/detail_action_buttons.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
|
||||
/// 구독 상세 정보를 표시하고 편집할 수 있는 화면
|
||||
class DetailScreen extends StatefulWidget {
|
||||
@@ -46,7 +47,7 @@ class _DetailScreenState extends State<DetailScreen>
|
||||
final baseColor = _controller.getCardColor();
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFF5F5F7),
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
body: CustomScrollView(
|
||||
controller: _controller.scrollController,
|
||||
slivers: [
|
||||
|
||||
@@ -166,7 +166,7 @@ class _MainScreenState extends State<MainScreen>
|
||||
children: [
|
||||
Icon(
|
||||
Icons.check_circle,
|
||||
color: Colors.white,
|
||||
color: AppColors.pureWhite,
|
||||
size: 20,
|
||||
),
|
||||
SizedBox(width: 12),
|
||||
@@ -175,11 +175,12 @@ class _MainScreenState extends State<MainScreen>
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
backgroundColor: const Color(0xFF10B981), // 초록색
|
||||
backgroundColor: AppColors.successColor,
|
||||
behavior: SnackBarBehavior.floating,
|
||||
margin: EdgeInsets.only(
|
||||
top: MediaQuery.of(context).padding.top + 16, // 상단 여백
|
||||
@@ -219,19 +220,9 @@ class _MainScreenState extends State<MainScreen>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final navigationProvider = context.watch<NavigationProvider>();
|
||||
final hour = DateTime.now().hour;
|
||||
List<Color> backgroundGradient;
|
||||
|
||||
// 시간대별 배경 그라디언트 설정
|
||||
if (hour >= 6 && hour < 10) {
|
||||
backgroundGradient = AppColors.morningGradient;
|
||||
} else if (hour >= 10 && hour < 17) {
|
||||
backgroundGradient = AppColors.dayGradient;
|
||||
} else if (hour >= 17 && hour < 20) {
|
||||
backgroundGradient = AppColors.eveningGradient;
|
||||
} else {
|
||||
backgroundGradient = AppColors.nightGradient;
|
||||
}
|
||||
// 메인 그라데이션 사용
|
||||
List<Color> backgroundGradient = AppColors.mainGradient;
|
||||
|
||||
// 현재 인덱스가 유효한지 확인
|
||||
int currentIndex = navigationProvider.currentIndex;
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:url_launcher/url_launcher.dart';
|
||||
import '../providers/theme_provider.dart';
|
||||
import '../theme/adaptive_theme.dart';
|
||||
import '../widgets/glassmorphism_card.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
|
||||
class SettingsScreen extends StatelessWidget {
|
||||
const SettingsScreen({super.key});
|
||||
@@ -24,13 +25,13 @@ class SettingsScreen extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.2)
|
||||
? AppColors.primaryColor.withValues(alpha: 0.2)
|
||||
: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.outline.withValues(alpha: 0.5),
|
||||
? AppColors.primaryColor
|
||||
: AppColors.textSecondary.withValues(alpha: 0.5),
|
||||
width: isSelected ? 2 : 1,
|
||||
),
|
||||
),
|
||||
@@ -43,8 +44,8 @@ class SettingsScreen extends StatelessWidget {
|
||||
? Icons.radio_button_checked
|
||||
: Icons.radio_button_unchecked,
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.outline,
|
||||
? AppColors.primaryColor
|
||||
: AppColors.textSecondary,
|
||||
size: 24,
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
@@ -54,8 +55,8 @@ class SettingsScreen extends StatelessWidget {
|
||||
fontSize: 14,
|
||||
fontWeight: isSelected ? FontWeight.bold : FontWeight.normal,
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
? AppColors.primaryColor
|
||||
: AppColors.textPrimary,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -187,8 +188,14 @@ class SettingsScreen extends StatelessWidget {
|
||||
provider.setEnabled(true);
|
||||
} else {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('알림 권한이 거부되었습니다'),
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'알림 권한이 거부되었습니다',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.dangerColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -449,7 +456,15 @@ class SettingsScreen extends StatelessWidget {
|
||||
} catch (e) {
|
||||
if (context.mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('스토어를 열 수 없습니다')),
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'스토어를 열 수 없습니다',
|
||||
style: TextStyle(
|
||||
color: AppColors.pureWhite,
|
||||
),
|
||||
),
|
||||
backgroundColor: AppColors.dangerColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ import '../services/subscription_url_matcher.dart';
|
||||
import 'package:intl/intl.dart'; // NumberFormat을 사용하기 위한 import 추가
|
||||
import '../widgets/glassmorphism_card.dart';
|
||||
import '../widgets/themed_text.dart';
|
||||
import '../theme/app_colors.dart';
|
||||
import '../widgets/common/snackbar/app_snackbar.dart';
|
||||
import '../widgets/common/buttons/primary_button.dart';
|
||||
import '../widgets/common/buttons/secondary_button.dart';
|
||||
import '../widgets/common/form_fields/base_text_field.dart';
|
||||
|
||||
class SmsScanScreen extends StatefulWidget {
|
||||
const SmsScanScreen({super.key});
|
||||
@@ -352,41 +357,9 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
|
||||
// 성공 메시지 표시
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Row(
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.check_circle,
|
||||
color: Colors.white,
|
||||
size: 20,
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'${subscription.serviceName} 구독이 추가되었습니다.',
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
backgroundColor: const Color(0xFF10B981), // 초록색
|
||||
behavior: SnackBarBehavior.floating,
|
||||
margin: EdgeInsets.only(
|
||||
top: MediaQuery.of(context).padding.top + 16, // 상단 여백
|
||||
left: 16,
|
||||
right: 16,
|
||||
bottom: MediaQuery.of(context).size.height - 120, // 상단에 위치하도록 bottom 마진 설정
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
duration: const Duration(seconds: 3),
|
||||
dismissDirection: DismissDirection.horizontal,
|
||||
),
|
||||
AppSnackBar.showSuccess(
|
||||
context: context,
|
||||
message: '${subscription.serviceName} 구독이 추가되었습니다.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -395,12 +368,9 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
} catch (e) {
|
||||
print('구독 추가 중 오류 발생: $e');
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('구독 추가 중 오류가 발생했습니다: $e'),
|
||||
backgroundColor: Colors.red,
|
||||
duration: const Duration(seconds: 2),
|
||||
),
|
||||
AppSnackBar.showError(
|
||||
context: context,
|
||||
message: '구독 추가 중 오류가 발생했습니다: $e',
|
||||
);
|
||||
|
||||
// 오류가 있어도 다음 구독으로 이동
|
||||
@@ -411,6 +381,16 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
|
||||
// 현재 구독 건너뛰기
|
||||
void _skipCurrentSubscription() {
|
||||
final subscription = _scannedSubscriptions[_currentIndex];
|
||||
|
||||
if (mounted) {
|
||||
AppSnackBar.showInfo(
|
||||
context: context,
|
||||
message: '${subscription.serviceName} 구독을 건너뛰었습니다.',
|
||||
icon: Icons.skip_next_rounded,
|
||||
);
|
||||
}
|
||||
|
||||
_moveToNextSubscription();
|
||||
}
|
||||
|
||||
@@ -434,12 +414,9 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
navigationProvider.updateCurrentIndex(0);
|
||||
|
||||
// 완료 메시지 표시
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('모든 구독이 처리되었습니다.'),
|
||||
backgroundColor: Colors.green,
|
||||
duration: Duration(seconds: 2),
|
||||
),
|
||||
AppSnackBar.showSuccess(
|
||||
context: context,
|
||||
message: '모든 구독이 처리되었습니다.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -530,15 +507,17 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
|
||||
// 로딩 상태 UI
|
||||
Widget _buildLoadingState() {
|
||||
return const Center(
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CircularProgressIndicator(),
|
||||
SizedBox(height: 16),
|
||||
ThemedText('SMS 메시지를 스캔 중입니다...'),
|
||||
SizedBox(height: 8),
|
||||
ThemedText('구독 서비스를 찾고 있습니다', opacity: 0.7),
|
||||
CircularProgressIndicator(
|
||||
valueColor: AlwaysStoppedAnimation<Color>(AppColors.primaryColor),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const ThemedText('SMS 메시지를 스캔 중입니다...', forceDark: true),
|
||||
const SizedBox(height: 8),
|
||||
const ThemedText('구독 서비스를 찾고 있습니다', opacity: 0.7, forceDark: true),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -564,6 +543,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'2회 이상 결제된 구독 서비스 찾기',
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const Padding(
|
||||
@@ -572,16 +552,17 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'문자 메시지를 스캔하여 반복적으로 결제된 구독 서비스를 자동으로 찾습니다. 서비스명과 금액을 추출하여 쉽게 구독을 추가할 수 있습니다.',
|
||||
textAlign: TextAlign.center,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
ElevatedButton.icon(
|
||||
PrimaryButton(
|
||||
text: '스캔 시작하기',
|
||||
icon: Icons.search_rounded,
|
||||
onPressed: _scanSms,
|
||||
icon: const Icon(Icons.search),
|
||||
label: const Text('스캔 시작하기'),
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 32, vertical: 12),
|
||||
),
|
||||
width: 200,
|
||||
height: 56,
|
||||
backgroundColor: AppColors.primaryColor,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -591,9 +572,10 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
// 구독 표시 상태 UI
|
||||
Widget _buildSubscriptionState() {
|
||||
if (_currentIndex >= _scannedSubscriptions.length) {
|
||||
return const Center(
|
||||
child: ThemedText('모든 구독 처리 완료'),
|
||||
);
|
||||
// 처리 완료 후 초기 상태로 복귀
|
||||
_scannedSubscriptions = [];
|
||||
_currentIndex = 0;
|
||||
return _buildInitialState(); // 스캔 버튼이 있는 초기 화면으로 돌아감
|
||||
}
|
||||
|
||||
final subscription = _scannedSubscriptions[_currentIndex];
|
||||
@@ -609,7 +591,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
// 진행 상태 표시
|
||||
LinearProgressIndicator(
|
||||
value: (_currentIndex + 1) / _scannedSubscriptions.length,
|
||||
backgroundColor: Colors.grey.withValues(alpha: 0.2),
|
||||
backgroundColor: AppColors.navyGray.withValues(alpha: 0.2),
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
Theme.of(context).colorScheme.primary),
|
||||
),
|
||||
@@ -618,6 +600,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'${_currentIndex + 1}/${_scannedSubscriptions.length}',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
|
||||
@@ -632,6 +615,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'다음 구독을 찾았습니다',
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
// 서비스명
|
||||
@@ -639,12 +623,14 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'서비스명',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ThemedText(
|
||||
subscription.serviceName,
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.bold,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
|
||||
@@ -659,6 +645,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'월 비용',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ThemedText(
|
||||
@@ -675,6 +662,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
).format(subscription.monthlyCost),
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
forceDark: true,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -687,6 +675,7 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'반복 횟수',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ThemedText(
|
||||
@@ -713,12 +702,14 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'결제 주기',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ThemedText(
|
||||
subscription.billingCycle,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
forceDark: true,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -731,12 +722,14 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
'결제일',
|
||||
fontWeight: FontWeight.w500,
|
||||
opacity: 0.7,
|
||||
forceDark: true,
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ThemedText(
|
||||
_getNextBillingText(subscription.nextBillingDate),
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w500,
|
||||
forceDark: true,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -746,17 +739,18 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
const SizedBox(height: 24),
|
||||
|
||||
// 웹사이트 URL 입력 필드 추가/수정
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
controller: _websiteUrlController,
|
||||
decoration: const InputDecoration(
|
||||
labelText: '웹사이트 URL (자동 추출됨)',
|
||||
hintText: '웹사이트 URL을 수정하거나 비워두세요',
|
||||
prefixIcon: Icon(Icons.language),
|
||||
border: OutlineInputBorder(),
|
||||
),
|
||||
BaseTextField(
|
||||
controller: _websiteUrlController,
|
||||
label: '웹사이트 URL (자동 추출됨)',
|
||||
hintText: '웹사이트 URL을 수정하거나 비워두세요',
|
||||
prefixIcon: Icon(
|
||||
Icons.language,
|
||||
color: AppColors.navyGray,
|
||||
),
|
||||
style: TextStyle(
|
||||
color: AppColors.darkNavy,
|
||||
),
|
||||
fillColor: AppColors.pureWhite.withValues(alpha: 0.8),
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
|
||||
@@ -764,22 +758,18 @@ class _SmsScanScreenState extends State<SmsScanScreen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: OutlinedButton(
|
||||
child: SecondaryButton(
|
||||
text: '건너뛰기',
|
||||
onPressed: _skipCurrentSubscription,
|
||||
style: OutlinedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
),
|
||||
child: const Text('건너뛰기'),
|
||||
height: 48,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
child: PrimaryButton(
|
||||
text: '추가하기',
|
||||
onPressed: _addCurrentSubscription,
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
),
|
||||
child: const Text('추가하기'),
|
||||
height: 48,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -135,7 +135,7 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
// 글래스모피즘 오버레이
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withValues(alpha: 0.05),
|
||||
color: AppColors.pureWhite.withValues(alpha: 0.05),
|
||||
),
|
||||
),
|
||||
Stack(
|
||||
@@ -188,8 +188,8 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(
|
||||
colors: [
|
||||
Colors.white.withValues(alpha: 0.1),
|
||||
Colors.white.withValues(alpha: 0.0),
|
||||
AppColors.pureWhite.withValues(alpha: 0.1),
|
||||
AppColors.pureWhite.withValues(alpha: 0.0),
|
||||
],
|
||||
stops: const [0.2, 1.0],
|
||||
),
|
||||
@@ -208,8 +208,8 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(
|
||||
colors: [
|
||||
Colors.white.withValues(alpha: 0.07),
|
||||
Colors.white.withValues(alpha: 0.0),
|
||||
AppColors.pureWhite.withValues(alpha: 0.07),
|
||||
AppColors.pureWhite.withValues(alpha: 0.0),
|
||||
],
|
||||
stops: const [0.4, 1.0],
|
||||
),
|
||||
@@ -250,23 +250,22 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Colors.white
|
||||
AppColors.pureWhite
|
||||
.withValues(alpha: 0.2),
|
||||
Colors.white
|
||||
AppColors.pureWhite
|
||||
.withValues(alpha: 0.1),
|
||||
],
|
||||
),
|
||||
borderRadius:
|
||||
BorderRadius.circular(30),
|
||||
border: Border.all(
|
||||
color: Colors.white
|
||||
color: AppColors.pureWhite
|
||||
.withValues(alpha: 0.3),
|
||||
width: 1.5,
|
||||
),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black
|
||||
.withValues(alpha: 0.1),
|
||||
color: AppColors.shadowBlack,
|
||||
spreadRadius: 0,
|
||||
blurRadius: 30,
|
||||
offset: const Offset(0, 10),
|
||||
@@ -323,12 +322,12 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
),
|
||||
);
|
||||
},
|
||||
child: const Text(
|
||||
child: Text(
|
||||
'SubManager',
|
||||
style: TextStyle(
|
||||
fontSize: 36,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.pureWhite,
|
||||
letterSpacing: 1.2,
|
||||
),
|
||||
),
|
||||
@@ -349,11 +348,11 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
),
|
||||
);
|
||||
},
|
||||
child: const Text(
|
||||
child: Text(
|
||||
'구독 서비스 관리를 더 쉽게',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color: Colors.white70,
|
||||
color: AppColors.pureWhite.withValues(alpha: 0.7),
|
||||
letterSpacing: 0.5,
|
||||
),
|
||||
),
|
||||
@@ -374,17 +373,17 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
height: 60,
|
||||
padding: const EdgeInsets.all(6),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withValues(alpha: 0.1),
|
||||
color: AppColors.pureWhite.withValues(alpha: 0.1),
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
border: Border.all(
|
||||
color:
|
||||
Colors.white.withValues(alpha: 0.2),
|
||||
AppColors.pureWhite.withValues(alpha: 0.2),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: const CircularProgressIndicator(
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
Colors.white),
|
||||
AppColors.pureWhite),
|
||||
strokeWidth: 3,
|
||||
),
|
||||
),
|
||||
@@ -401,11 +400,11 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
padding: const EdgeInsets.only(bottom: 24.0),
|
||||
child: FadeTransition(
|
||||
opacity: _fadeAnimation,
|
||||
child: const Text(
|
||||
child: Text(
|
||||
'© 2023 CClabs. All rights reserved.',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Colors.white60,
|
||||
color: AppColors.pureWhite.withValues(alpha: 0.6),
|
||||
letterSpacing: 0.5,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user