- ExchangeRateService에 JPY, CNY 환율 지원 추가 - 구독 서비스별 다국어 표시 이름 지원 - 분석 화면 차트 및 UI/UX 개선 - 설정 화면 전면 리팩토링 - SMS 스캔 기능 사용성 개선 - 전체 앱 다국어 번역 확대 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
197 lines
7.4 KiB
Dart
197 lines
7.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../../controllers/detail_screen_controller.dart';
|
|
import '../../theme/app_colors.dart';
|
|
import '../common/form_fields/base_text_field.dart';
|
|
import '../common/buttons/secondary_button.dart';
|
|
import '../../l10n/app_localizations.dart';
|
|
|
|
/// 웹사이트 URL 섹션
|
|
/// 서비스 웹사이트 URL과 해지 관련 정보를 관리하는 섹션입니다.
|
|
class DetailUrlSection extends StatelessWidget {
|
|
final DetailScreenController controller;
|
|
final Animation<double> fadeAnimation;
|
|
final Animation<Offset> slideAnimation;
|
|
|
|
const DetailUrlSection({
|
|
super.key,
|
|
required this.controller,
|
|
required this.fadeAnimation,
|
|
required this.slideAnimation,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final baseColor = controller.getCardColor();
|
|
|
|
return FadeTransition(
|
|
opacity: fadeAnimation,
|
|
child: SlideTransition(
|
|
position: Tween<Offset>(
|
|
begin: const Offset(0.0, 0.8),
|
|
end: Offset.zero,
|
|
).animate(CurvedAnimation(
|
|
parent: controller.animationController!,
|
|
curve: const Interval(0.4, 1.0, curve: Curves.easeOutCubic),
|
|
)),
|
|
child: Container(
|
|
decoration: BoxDecoration(
|
|
color: AppColors.glassCard,
|
|
borderRadius: BorderRadius.circular(20),
|
|
border: Border.all(
|
|
color: AppColors.glassBorder.withValues(alpha: 0.1),
|
|
width: 1,
|
|
),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: AppColors.shadowBlack,
|
|
blurRadius: 10,
|
|
offset: const Offset(0, 4),
|
|
),
|
|
],
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(24),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
// 헤더
|
|
Row(
|
|
children: [
|
|
Container(
|
|
padding: const EdgeInsets.all(8),
|
|
decoration: BoxDecoration(
|
|
color: baseColor.withValues(alpha: 0.1),
|
|
borderRadius: BorderRadius.circular(12),
|
|
),
|
|
child: Icon(
|
|
Icons.language_rounded,
|
|
color: baseColor,
|
|
size: 24,
|
|
),
|
|
),
|
|
const SizedBox(width: 12),
|
|
Text(
|
|
AppLocalizations.of(context).websiteInfo,
|
|
style: const TextStyle(
|
|
fontSize: 18,
|
|
fontWeight: FontWeight.w700,
|
|
color: AppColors.darkNavy,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
const SizedBox(height: 20),
|
|
|
|
// URL 입력 필드
|
|
BaseTextField(
|
|
controller: controller.websiteUrlController,
|
|
focusNode: controller.websiteUrlFocus,
|
|
label: AppLocalizations.of(context).websiteUrl,
|
|
hintText: AppLocalizations.of(context).urlExample,
|
|
keyboardType: TextInputType.url,
|
|
prefixIcon: Icon(
|
|
Icons.link_rounded,
|
|
color: AppColors.navyGray,
|
|
),
|
|
),
|
|
|
|
// 해지 안내 섹션
|
|
if (controller.subscription.websiteUrl != null &&
|
|
controller.subscription.websiteUrl!.isNotEmpty) ...[
|
|
const SizedBox(height: 24),
|
|
Container(
|
|
padding: const EdgeInsets.all(16),
|
|
decoration: BoxDecoration(
|
|
color: AppColors.warningColor.withValues(alpha: 0.08),
|
|
borderRadius: BorderRadius.circular(16),
|
|
border: Border.all(
|
|
color: AppColors.warningColor.withValues(alpha: 0.4),
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Row(
|
|
children: [
|
|
Icon(
|
|
Icons.info_outline_rounded,
|
|
color: AppColors.warningColor,
|
|
size: 20,
|
|
),
|
|
const SizedBox(width: 8),
|
|
Text(
|
|
AppLocalizations.of(context).cancelGuide,
|
|
style: TextStyle(
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w600,
|
|
color: AppColors.darkNavy,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
const SizedBox(height: 8),
|
|
Text(
|
|
AppLocalizations.of(context).cancelServiceGuide,
|
|
style: TextStyle(
|
|
fontSize: 14,
|
|
color: AppColors.darkNavy,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.5,
|
|
),
|
|
),
|
|
const SizedBox(height: 12),
|
|
TextLinkButton(
|
|
text: AppLocalizations.of(context).goToCancelPage,
|
|
icon: Icons.open_in_new_rounded,
|
|
onPressed: controller.openCancellationPage,
|
|
color: AppColors.warningColor,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
|
|
// URL 자동 매칭 정보
|
|
if (controller.websiteUrlController.text.isEmpty) ...[
|
|
const SizedBox(height: 16),
|
|
Container(
|
|
padding: const EdgeInsets.all(12),
|
|
decoration: BoxDecoration(
|
|
color: AppColors.infoColor.withValues(alpha: 0.08),
|
|
borderRadius: BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color: AppColors.infoColor.withValues(alpha: 0.3),
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Row(
|
|
children: [
|
|
Icon(
|
|
Icons.auto_fix_high_rounded,
|
|
color: AppColors.infoColor,
|
|
size: 20,
|
|
),
|
|
const SizedBox(width: 8),
|
|
Expanded(
|
|
child: Text(
|
|
AppLocalizations.of(context).urlAutoMatchInfo,
|
|
style: TextStyle(
|
|
fontSize: 14,
|
|
color: AppColors.darkNavy,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |