rup-project/app/lib/screens/register_complete_screen.dart

88 lines
2.9 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../theme/app_colors.dart';
import 'main_screen.dart';
class RegisterCompleteScreen extends StatelessWidget {
const RegisterCompleteScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SafeArea(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20.w),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Spacer(),
// TODO: Add a success image/icon here if available
Icon(
Icons.check_circle_outline,
size: 100.w,
color: AppColors.highlight,
),
SizedBox(height: 24.h),
Text(
'반려동물 등록 완료!',
style: TextStyle(
fontFamily: 'SCDream',
fontSize: 24.sp,
fontWeight: FontWeight.bold,
color: const Color(0xFF1F1F1F),
),
),
SizedBox(height: 12.h),
Text(
'이제 RUP과 함께\n똑똑한 반려생활을 시작해보세요.',
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: 'SCDream',
fontSize: 16.sp,
color: const Color(0xFF7D7C7C),
height: 1.5,
),
),
const Spacer(),
SizedBox(
width: double.infinity,
height: 52.h,
child: ElevatedButton(
onPressed: () {
// 메인 화면으로 이동하면서 스택 초기화
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => const MainScreen(),
),
(route) => false,
);
},
style: ElevatedButton.styleFrom(
backgroundColor: AppColors.highlight,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30.r),
),
),
child: Text(
'홈으로 가기',
style: TextStyle(
fontFamily: 'SCDream',
fontSize: 16.sp,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
),
),
SizedBox(height: 20.h),
],
),
),
),
);
}
}