@@ -79,10 +79,19 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
7979 false ,
8080 TextInputType .text,
8181 null ,
82- GestureDetector (
83- onTap: () => _toggle (),
84- child: Text (_obscureText ? "Show" : "Hide" ,
85- style: boldFont (MColors .primaryPurple, null )),
82+ SizedBox (
83+ height: 20.0 ,
84+ width: 35.0 ,
85+ child: RawMaterialButton (
86+ onPressed: _toggle,
87+ child: new Text (
88+ _obscureText ? "Show" : "Hide" ,
89+ style: TextStyle (
90+ color: MColors .primaryPurple,
91+ fontWeight: FontWeight .bold,
92+ ),
93+ ),
94+ ),
8695 ),
8796 ),
8897 ],
@@ -94,7 +103,7 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
94103 crossAxisAlignment: CrossAxisAlignment .start,
95104 children: < Widget > [
96105 Text (
97- "Current password" ,
106+ "New password" ,
98107 style: normalFont (MColors .textGrey, null ),
99108 ),
100109 SizedBox (height: 5.0 ),
@@ -111,10 +120,19 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
111120 false ,
112121 TextInputType .text,
113122 null ,
114- GestureDetector (
115- onTap: () => _toggle (),
116- child: Text (_obscureText ? "Show" : "Hide" ,
117- style: boldFont (MColors .primaryPurple, null )),
123+ SizedBox (
124+ height: 20.0 ,
125+ width: 35.0 ,
126+ child: RawMaterialButton (
127+ onPressed: _toggle,
128+ child: new Text (
129+ _obscureText ? "Show" : "Hide" ,
130+ style: TextStyle (
131+ color: MColors .primaryPurple,
132+ fontWeight: FontWeight .bold,
133+ ),
134+ ),
135+ ),
118136 ),
119137 ),
120138 ],
@@ -126,7 +144,7 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
126144 crossAxisAlignment: CrossAxisAlignment .start,
127145 children: < Widget > [
128146 Text (
129- "Current password" ,
147+ "Confirm new password" ,
130148 style: normalFont (MColors .textGrey, null ),
131149 ),
132150 SizedBox (height: 5.0 ),
@@ -143,10 +161,19 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
143161 false ,
144162 TextInputType .text,
145163 null ,
146- GestureDetector (
147- onTap: () => _toggle (),
148- child: Text (_obscureText ? "Show" : "Hide" ,
149- style: boldFont (MColors .primaryPurple, null )),
164+ SizedBox (
165+ height: 20.0 ,
166+ width: 35.0 ,
167+ child: RawMaterialButton (
168+ onPressed: _toggle,
169+ child: new Text (
170+ _obscureText ? "Show" : "Hide" ,
171+ style: TextStyle (
172+ color: MColors .primaryPurple,
173+ fontWeight: FontWeight .bold,
174+ ),
175+ ),
176+ ),
150177 ),
151178 ),
152179 ],
0 commit comments