allscore_app/lib/id_finding_page.dart

93 lines
3.1 KiB
Dart
Raw Normal View History

2024-12-14 16:44:36 +00:00
import 'package:flutter/material.dart';
import 'login_page.dart';
import 'pw_finding_page.dart';
import 'signup_page.dart';
class IdFindingPage extends StatelessWidget {
const IdFindingPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
title: const Text('ALL SCORE', style: TextStyle(color: Colors.white)),
backgroundColor: Colors.black,
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
'ID 찾기',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
const SizedBox(height: 32),
TextField(
decoration: InputDecoration(
labelText: '닉네임',
labelStyle: const TextStyle(color: Colors.black),
border: OutlineInputBorder(),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.black, width: 2.0),
),
),
),
const SizedBox(height: 16),
TextField(
decoration: InputDecoration(
labelText: '이메일',
labelStyle: const TextStyle(color: Colors.black),
border: OutlineInputBorder(),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(color: Colors.black, width: 2.0),
),
),
),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () {
// ID 찾기 로직 추가
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.black,
foregroundColor: Colors.white,
),
child: const Text('ID 찾기'),
),
const SizedBox(height: 16),
TextButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const PwFindingPage()),
);
},
child: const Text('PW 찾기', style: TextStyle(color: Colors.black)),
),
TextButton(
onPressed: () {
Navigator.pop(context); // 로그인 페이지로 이동
},
child: const Text('로그인', style: TextStyle(color: Colors.black)),
),
TextButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const SignUpPage()),
);
},
child: const Text('회원가입', style: TextStyle(color: Colors.black)),
),
],
),
),
);
}
}