-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup_page.dart
115 lines (112 loc) · 4.15 KB
/
signup_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import 'package:flutter/material.dart';
class SignUpPage extends StatefulWidget {
const SignUpPage({super.key});
@override
State<SignUpPage> createState() => _SignUpPageState();
}
class _SignUpPageState extends State<SignUpPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Padding(
padding: const EdgeInsets.only(left: 30, top: 60),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'SIGNUP !',
style: TextStyle(color: Color(0xFFBD1F1F), fontSize: 40, fontWeight: FontWeight.bold),
),
SizedBox(height: 10),
Text(
"Let's get started",
style: TextStyle(color: Color(0xFFBD1F1F), fontSize: 20, fontWeight: FontWeight.bold),
),
SizedBox(height: 40),
TextField(
decoration: InputDecoration(
labelText: 'Name',
labelStyle: TextStyle(color: Colors.white),
filled: true,
fillColor: Color(0xFFBD1F1F),
prefixIcon: Icon(Icons.person_outline, color: Colors.white),
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
),
),
SizedBox(height: 15),
TextField(
decoration: InputDecoration(
labelText: 'Username',
labelStyle: TextStyle(color: Colors.white),
prefixIcon: Icon(Icons.person, color: Colors.white),
filled: true,
fillColor: Color(0xFFBD1F1F),
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
),
),
SizedBox(height: 15),
TextField(
decoration: InputDecoration(
labelText: 'Email ID',
labelStyle: TextStyle(color: Colors.white),
prefixIcon: Icon(Icons.email_outlined, color: Colors.white),
filled: true,
fillColor: Color(0xFFBD1F1F),
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
),
),
SizedBox(height: 15),
TextField(
decoration: InputDecoration(
labelText: 'Password',
labelStyle: TextStyle(color: Colors.white),
prefixIcon: Icon(Icons.lock_outline, color: Colors.white),
filled: true,
fillColor: Color(0xFFBD1F1F),
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
),
),
SizedBox(height: 40),
Center(
child: ElevatedButton(
onPressed: () {},
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
child: Text('SUBMIT', style: TextStyle(fontSize: 20)),
),
style: ElevatedButton.styleFrom(
primary: Color(0xFFBD1F1F),
onPrimary: Colors.white,
),
),
),
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Already have an account?',
style: TextStyle(color: Color(0xFFBD1F1F)),
),
GestureDetector(
onTap: () {
// Navigate to login page
},
child: Text(
' Login here',
style: TextStyle(color: Color(0xFFBD1F1F), fontWeight: FontWeight.bold),
),
),
],
),
],
),
),
);
}
}