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

43 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'welcome_screen.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text(
'',
style: TextStyle(fontFamily: 'SCDream', fontWeight: FontWeight.bold),
),
centerTitle: true,
actions: [
IconButton(
icon: const Icon(Icons.logout),
onPressed: () {
// Mock Logout: Go back to Welcome Screen
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => const WelcomeScreen()),
);
},
),
],
),
body: const Center(
child: Text(
'로그인 성공!\n여기는 메인 홈 화면입니다.',
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: 'SCDream',
fontWeight: FontWeight.w500,
fontSize: 18,
),
),
),
);
}
}