-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.dart
175 lines (131 loc) · 5.4 KB
/
signup.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_application_1/main.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Login Page',
theme: ThemeData(
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: Color.fromARGB(6, 78, 50, 144),
enabledBorder:
OutlineInputBorder(borderRadius: BorderRadius.circular(15)),
border: OutlineInputBorder(borderRadius: BorderRadius.circular(15)),
errorBorder: OutlineInputBorder(),
hintStyle: TextStyle(color: Color.fromARGB(0, 250, 0, 0))),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
backgroundColor:
MaterialStatePropertyAll(Color.fromARGB(255, 236, 225, 221)),
shape: MaterialStatePropertyAll(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15)))),
),
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
primarySwatch: Colors.grey,
),
home: LoginPage(),
);
}
}
class LoginPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
),
body: SafeArea(
child: Center(
child: SingleChildScrollView(
physics: BouncingScrollPhysics(),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
Image(image:AssetImage("assets/logo/refero.jpg")),
//aks
Row(mainAxisAlignment: MainAxisAlignment.center, children: [
SizedBox(
height: 51,
width: 185,
child: TextButton(
style: Theme.of(context).textButtonTheme.style!.copyWith(
backgroundColor:MaterialStateProperty.all(Color.fromARGB(255, 109, 207, 254))
),
onPressed: null,
child: Text("با گوگل وارد شوید"),
),
),
]
),
SizedBox(height: 15),
//Image.asset("assets/icon/icons8-next-16.png"),
],
),
Form(
child: Column(
children: [
TextFormField(
decoration: InputDecoration(labelText: "ایمیل"),
),
SizedBox(height: 15),
TextFormField(
decoration: InputDecoration(labelText: "نام کاربری"),
),
SizedBox(height: 15),
TextField(
decoration: InputDecoration(labelText: "رمز عبور"),
),
SizedBox(height: 15),
TextFormField(
decoration: InputDecoration(labelText: "تکرار رمز عبور"),
),
SizedBox(height: 15),
],
)),
Container(
height: 51,
width: 247,
child: ElevatedButton(onPressed: () {},
child: Text('ورود'),),
),
SizedBox(height: 30),
Row(
children: [
Text("حساب کاربری ندارید",style: TextStyle(fontWeight: FontWeight.bold),),
SizedBox(
width: 10,
),
GestureDetector(
onTap: () {
},
child: Text('ثبت مام',style: TextStyle(color: Color.fromARGB(256,0 ,0 ,255)),),
),
ElevatedButton(
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => Signup()));
},
child: Text('ثبت نام'),
)
],
)
],
),
)),
),
);
}
}