@@ -48,13 +48,12 @@ class Signup extends StatelessWidget {
48
48
color: neutral_800,
49
49
borderRadius: const BorderRadius .all (Radius .circular (5 ))),
50
50
child: TextField (
51
- style: TextStyle (color : neutral_50) ,
51
+ style: body2BoldShade50 ,
52
52
cursorColor: neutral_50,
53
53
obscureText: stylePassword,
54
54
keyboardType: TextInputType .emailAddress,
55
55
decoration: InputDecoration (
56
- contentPadding: const EdgeInsets .symmetric (
57
- vertical: 20 , horizontal: 20 ),
56
+ contentPadding: textFieldSize,
58
57
focusedBorder: OutlineInputBorder (
59
58
borderSide: BorderSide (color: primary)),
60
59
border: InputBorder .none,
@@ -81,12 +80,11 @@ class Signup extends StatelessWidget {
81
80
color: neutral_800,
82
81
borderRadius: const BorderRadius .all (Radius .circular (5 ))),
83
82
child: TextField (
84
- style: TextStyle (color : neutral_50) ,
83
+ style: body2BoldShade50 ,
85
84
cursorColor: neutral_50,
86
85
obscureText: stylePassword,
87
86
decoration: InputDecoration (
88
- contentPadding: const EdgeInsets .symmetric (
89
- vertical: 20 , horizontal: 20 ),
87
+ contentPadding: textFieldSize,
90
88
focusedBorder: OutlineInputBorder (
91
89
borderSide: BorderSide (color: primary)),
92
90
border: InputBorder .none,
@@ -100,24 +98,22 @@ class Signup extends StatelessWidget {
100
98
}
101
99
102
100
btnLogin () {
103
- return SizedBox (
104
- height: 52 ,
105
- child: ElevatedButton (
106
- onPressed: () {
107
- if (condition == 'baca' ) {
108
- Navigator .push (
109
- context, MaterialPageRoute (builder: (context) => HomePage ()));
110
- } else {
111
- Navigator .push (context,
112
- MaterialPageRoute (builder: (context) => WritePage ()));
113
- }
114
- },
115
- child: Text (
116
- 'Daftar' ,
117
- style: body1Reguler,
118
- ),
119
- style: ElevatedButton .styleFrom (backgroundColor: primary),
101
+ return ElevatedButton (
102
+ onPressed: () {
103
+ if (condition == 'baca' ) {
104
+ Navigator .push (
105
+ context, MaterialPageRoute (builder: (context) => HomePage ()));
106
+ } else {
107
+ Navigator .push (
108
+ context, MaterialPageRoute (builder: (context) => WritePage ()));
109
+ }
110
+ },
111
+ child: Text (
112
+ 'Daftar' ,
113
+ style: body2RegulerShade50,
120
114
),
115
+ style: ElevatedButton .styleFrom (
116
+ backgroundColor: primary, padding: btnSize),
121
117
);
122
118
}
123
119
0 commit comments