- @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>
72 lines
2.2 KiB
Dart
72 lines
2.2 KiB
Dart
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});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Icon(
|
|
Icons.lock_outline,
|
|
size: 80,
|
|
color: AppColors.navyGray,
|
|
),
|
|
const SizedBox(height: 24),
|
|
Text(
|
|
'앱이 잠겨 있습니다',
|
|
style: TextStyle(
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.bold,
|
|
color: AppColors.darkNavy,
|
|
),
|
|
),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
'생체 인증으로 잠금을 해제하세요',
|
|
style: TextStyle(
|
|
fontSize: 16,
|
|
color: AppColors.navyGray,
|
|
),
|
|
),
|
|
const SizedBox(height: 32),
|
|
ElevatedButton.icon(
|
|
onPressed: () async {
|
|
final appLock = context.read<AppLockProvider>();
|
|
final success = await appLock.authenticate();
|
|
if (!success && context.mounted) {
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
SnackBar(
|
|
content: Text(
|
|
'인증에 실패했습니다. 다시 시도해주세요.',
|
|
style: TextStyle(
|
|
color: AppColors.pureWhite,
|
|
),
|
|
),
|
|
backgroundColor: AppColors.dangerColor,
|
|
),
|
|
);
|
|
}
|
|
},
|
|
icon: const Icon(Icons.fingerprint),
|
|
label: const Text('생체 인증으로 잠금 해제'),
|
|
style: ElevatedButton.styleFrom(
|
|
padding: const EdgeInsets.symmetric(
|
|
horizontal: 24,
|
|
vertical: 12,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|