회원 가입 페이지(Register Screen) UI 구현 , 탈퇴 팝업 UI 개선  및 이미지 수정
This commit is contained in:
KIMGYEONGRAN
2025-12-04 17:53:52 +09:00
parent 913ca9136a
commit 260e09b3a5
12 changed files with 723 additions and 168 deletions

View File

@@ -35,6 +35,120 @@ class _SettingsScreenState extends State<SettingsScreen> {
final String _currentAppVersion = "v1.0.2";
void _showDeleteAccountDialog(BuildContext context) {
showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20.0),
),
elevation: 0,
backgroundColor: Colors.transparent,
child: Container(
padding: const EdgeInsets.all(24.0),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20.0),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
blurRadius: 12,
offset: const Offset(0, 4),
),
],
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.warning_amber_rounded,
color: _warningColor,
size: 64.0,
),
const SizedBox(height: 20),
Text(
'회원 탈퇴',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 22.0,
fontWeight: FontWeight.bold,
color: _mainTextColor,
),
),
const SizedBox(height: 12),
Text(
'탈퇴 시 모든 이용 기록이 영구 삭제되며,\n 식제된 데이터는 복구할 수 없습니다.',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 14.0,
color: _subTextColor,
height: 1.5,
),
),
const SizedBox(height: 32),
Row(
children: [
Expanded(
child: OutlinedButton(
onPressed: () {
Navigator.of(context).pop();
},
style: OutlinedButton.styleFrom(
padding: const EdgeInsets.symmetric(vertical: 16),
side: BorderSide(color: Colors.grey.shade300),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
),
child: Text(
'유지하기',
style: TextStyle(
color: Colors.grey.shade700,
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
),
),
const SizedBox(width: 12),
Expanded(
child: FilledButton(
onPressed: () {
Navigator.of(context).pop();
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("탈퇴 요청이 처리되었습니다.")),
);
},
style: FilledButton.styleFrom(
backgroundColor: _warningColor,
padding: const EdgeInsets.symmetric(vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
elevation: 0,
),
child: const Text(
'탈퇴하기',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
),
),
],
),
],
),
),
);
},
);
}
void _showCommonModal(BuildContext context, String title, Widget content, {String rightButtonLabel = '닫기'}) {
showModalBottomSheet(
context: context,
@@ -671,13 +785,15 @@ class _SettingsScreenState extends State<SettingsScreen> {
const SizedBox(height: 40),
Center(
child: TextButton(
onPressed: () {},
onPressed: () {
_showDeleteAccountDialog(context);
},
child: Text(
'회원 탈퇴 신청',
style: TextStyle(
color: _warningColor,
fontWeight: FontWeight.bold,
fontSize: 14,
color: Colors.black,
fontWeight: FontWeight.w500,
fontSize: 12,
),
),
),