Skip to content

Commit 6a5cbf2

Browse files
committed
Change Password Dialog was not opening on iOS devices so that bug has
been resolved now.
1 parent 05f9683 commit 6a5cbf2

File tree

1 file changed

+37
-42
lines changed

1 file changed

+37
-42
lines changed

lib/pages/home_page.dart

+37-42
Original file line numberDiff line numberDiff line change
@@ -206,48 +206,43 @@ class HomePageState extends State<HomePage> {
206206
"Change Password",
207207
style: new TextStyle(color: Colors.blue[400], fontSize: 20.0),
208208
),
209-
content: new ListView(
210-
shrinkWrap: true,
211-
children: <Widget>[
212-
new Container(
213-
child: new Form(
214-
child: new Theme(
215-
data: new ThemeData(primarySwatch: Colors.pink),
216-
child: new Column(
217-
mainAxisSize: MainAxisSize.min,
218-
children: <Widget>[
219-
new Container(
220-
child: new TextFormField(
221-
controller: oldPasswordController,
222-
decoration: InputDecoration(
223-
suffixIcon: new Icon(
224-
Icons.vpn_key,
225-
color: Colors.pink,
226-
),
227-
labelText: Texts.OLD_PASSWORD,
228-
labelStyle: TextStyle(fontSize: 18.0)),
229-
keyboardType: TextInputType.text,
230-
obscureText: true,
231-
),
232-
margin: EdgeInsets.only(bottom: 35.0)),
233-
new Container(
234-
child: new TextFormField(
235-
controller: newPasswordController,
236-
decoration: InputDecoration(
237-
suffixIcon: new Icon(
238-
Icons.vpn_key,
239-
color: Colors.pink,
240-
),
241-
labelText: Texts.NEW_PASSWORD,
242-
labelStyle: TextStyle(fontSize: 18.0)),
243-
keyboardType: TextInputType.text,
244-
obscureText: true,
245-
),
246-
margin: EdgeInsets.only(bottom: 35.0)),
247-
],
248-
))),
249-
)
250-
],
209+
content: new Container(
210+
child: new Form(
211+
child: new Theme(
212+
data: new ThemeData(primarySwatch: Colors.pink),
213+
child: new Column(
214+
mainAxisSize: MainAxisSize.min,
215+
children: <Widget>[
216+
new Container(
217+
child: new TextFormField(
218+
controller: oldPasswordController,
219+
decoration: InputDecoration(
220+
suffixIcon: new Icon(
221+
Icons.vpn_key,
222+
color: Colors.pink,
223+
),
224+
labelText: Texts.OLD_PASSWORD,
225+
labelStyle: TextStyle(fontSize: 18.0)),
226+
keyboardType: TextInputType.text,
227+
obscureText: true,
228+
),
229+
margin: EdgeInsets.only(bottom: 10.0)),
230+
new Container(
231+
child: new TextFormField(
232+
controller: newPasswordController,
233+
decoration: InputDecoration(
234+
suffixIcon: new Icon(
235+
Icons.vpn_key,
236+
color: Colors.pink,
237+
),
238+
labelText: Texts.NEW_PASSWORD,
239+
labelStyle: TextStyle(fontSize: 18.0)),
240+
keyboardType: TextInputType.text,
241+
obscureText: true,
242+
),
243+
margin: EdgeInsets.only(bottom: 10.0)),
244+
],
245+
))),
251246
),
252247
actions: <Widget>[
253248
new FlatButton(

0 commit comments

Comments
 (0)