|
|
|
@ -184,50 +184,50 @@ class LoginPage extends StatelessWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
loginRequest.userID =
|
|
|
|
loginRequest.userID = int.parse(value.trim());
|
|
|
|
int.parse(value.trim());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 20,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
child: TextFields(
|
|
|
|
|
|
|
|
borderRadiusValue: 6,
|
|
|
|
|
|
|
|
hintText:
|
|
|
|
|
|
|
|
TranslationBase.of(context).enterPassword,
|
|
|
|
|
|
|
|
validator: (value) {
|
|
|
|
|
|
|
|
if (value.isEmpty) {
|
|
|
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|
|
|
|
.pleaseEnterPassword;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
|
|
|
loginRequest.password = value;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'password',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
),
|
|
|
|
height: 25,
|
|
|
|
SizedBox(
|
|
|
|
),
|
|
|
|
height: 20,
|
|
|
|
Row(
|
|
|
|
),
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
Container(
|
|
|
|
children: <Widget>[
|
|
|
|
child: TextFields(
|
|
|
|
Text(
|
|
|
|
borderRadiusValue: 6,
|
|
|
|
TranslationBase.of(context).forgotPassword,
|
|
|
|
hintText:
|
|
|
|
style: TextStyle(
|
|
|
|
TranslationBase.of(context).enterPassword,
|
|
|
|
fontSize: 14,
|
|
|
|
validator: (value) {
|
|
|
|
color: Theme.of(context).primaryColor),
|
|
|
|
if (value.isEmpty) {
|
|
|
|
),
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
],
|
|
|
|
.pleaseEnterPassword;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
|
|
|
loginRequest.password = value;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
type: 'password',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 25,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
//ToDo when forget page functions ready
|
|
|
|
|
|
|
|
// Row(
|
|
|
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
|
|
|
|
// TranslationBase.of(context).forgotPassword,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
|
|
|
// color: Theme.of(context).primaryColor),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|