1
1
import 'package:flutter/cupertino.dart' ;
2
2
import 'package:flutter/material.dart' ;
3
3
import 'package:flutter/painting.dart' ;
4
- import 'package:flutter_svg/flutter_svg.dart' ;
5
4
import 'package:mental_health/features/auth/data/models/auth/signin_user_req.dart' ;
6
5
import 'package:mental_health/features/auth/domain/usecases/auth/signin.dart' ;
7
6
import 'package:mental_health/features/auth/presentation/auth/pages/signup.dart' ;
@@ -19,13 +18,16 @@ class SignIn extends StatelessWidget {
19
18
return Scaffold (
20
19
bottomNavigationBar: _signupText (context),
21
20
appBar: AppBar (
22
- title: Image .asset (
23
- "screenshots/logo.png" ,
24
- height: 300 ,
25
- width: 300 ,
21
+ backgroundColor: Colors .transparent,
22
+ title: Padding (
23
+ padding: const EdgeInsets .only (right: 41.0 , top: 5 ),
24
+ child: Image .asset (
25
+ "screenshots/logo.png" ,
26
+ ),
26
27
),
27
28
centerTitle: true ,
28
29
),
30
+ backgroundColor: Colors .white,
29
31
body: SingleChildScrollView (
30
32
scrollDirection: Axis .vertical,
31
33
child: Padding (
@@ -39,7 +41,7 @@ class SignIn extends StatelessWidget {
39
41
const SizedBox (
40
42
height: 10 ,
41
43
),
42
- Text (
44
+ const Text (
43
45
"Get In Your Mood" ,
44
46
style: TextStyle (
45
47
fontFamily: 't3' ,
@@ -48,7 +50,7 @@ class SignIn extends StatelessWidget {
48
50
fontWeight: FontWeight .bold),
49
51
),
50
52
const SizedBox (
51
- height: 110 ,
53
+ height: 80 ,
52
54
),
53
55
_registerText (),
54
56
const SizedBox (
@@ -60,7 +62,7 @@ class SignIn extends StatelessWidget {
60
62
),
61
63
_password (context),
62
64
const SizedBox (
63
- height: 80 ,
65
+ height: 90 ,
64
66
),
65
67
ElevatedButton (
66
68
style: ElevatedButton .styleFrom (backgroundColor: Colors .black),
@@ -89,7 +91,7 @@ class SignIn extends StatelessWidget {
89
91
style: TextStyle (
90
92
fontFamily: 't3' ,
91
93
color: Colors .white,
92
- fontSize: 22 ,
94
+ fontSize: 17 ,
93
95
),
94
96
),
95
97
),
@@ -104,7 +106,7 @@ class SignIn extends StatelessWidget {
104
106
return const Text (
105
107
'Sign In' ,
106
108
style: TextStyle (
107
- letterSpacing: 3 ,
109
+ letterSpacing: 1 ,
108
110
fontFamily: 't1' ,
109
111
color: Colors .green,
110
112
fontSize: 25 ,
@@ -119,10 +121,10 @@ class SignIn extends StatelessWidget {
119
121
decoration: const InputDecoration (
120
122
hintText: "Enter Email" ,
121
123
),
122
- style: TextStyle (
124
+ style: const TextStyle (
123
125
fontFamily: 't3' ,
124
126
color: Colors .black,
125
- fontSize: 20 ,
127
+ fontSize: 16 ,
126
128
fontWeight: FontWeight .bold),
127
129
);
128
130
}
@@ -133,17 +135,17 @@ class SignIn extends StatelessWidget {
133
135
decoration: const InputDecoration (
134
136
hintText: "Password" ,
135
137
),
136
- style: TextStyle (
138
+ style: const TextStyle (
137
139
fontFamily: 't3' ,
138
140
color: Colors .black,
139
- fontSize: 20 ,
141
+ fontSize: 16 ,
140
142
fontWeight: FontWeight .bold),
141
143
);
142
144
}
143
145
144
146
Widget _signupText (BuildContext context) {
145
147
return Padding (
146
- padding: EdgeInsets .symmetric (vertical: 30 ),
148
+ padding: const EdgeInsets .symmetric (vertical: 30 ),
147
149
child: Row (
148
150
mainAxisAlignment: MainAxisAlignment .center,
149
151
children: [
@@ -152,7 +154,7 @@ class SignIn extends StatelessWidget {
152
154
style: TextStyle (
153
155
fontFamily: 't2' ,
154
156
color: Colors .red,
155
- fontSize: 25 ,
157
+ fontSize: 20 ,
156
158
fontWeight: FontWeight .bold),
157
159
),
158
160
TextButton (
@@ -168,7 +170,7 @@ class SignIn extends StatelessWidget {
168
170
letterSpacing: 0 ,
169
171
fontFamily: 't2' ,
170
172
color: Colors .purple,
171
- fontSize: 25 ,
173
+ fontSize: 20 ,
172
174
fontWeight: FontWeight .bold),
173
175
)),
174
176
],
0 commit comments