|
|
|
|
@ -117,8 +117,8 @@ class _LoginFormState extends State<LoginForm> {
|
|
|
|
|
},
|
|
|
|
|
onFieldSubmitted: (_) {
|
|
|
|
|
focusPass.nextFocus();
|
|
|
|
|
helpers.showCupertinoPicker(
|
|
|
|
|
context, projectsList, 'facilityName', onSelectProject);
|
|
|
|
|
// helpers.showCupertinoPicker(
|
|
|
|
|
// context, projectsList, 'facilityName', onSelectProject);
|
|
|
|
|
},
|
|
|
|
|
onTap: () {
|
|
|
|
|
this.getProjects(userInfo.userID);
|
|
|
|
|
@ -130,8 +130,8 @@ class _LoginFormState extends State<LoginForm> {
|
|
|
|
|
focusNode: focusProject,
|
|
|
|
|
controller: projectIdController,
|
|
|
|
|
onTap: () {
|
|
|
|
|
helpers.showCupertinoPicker(context, projectsList,
|
|
|
|
|
'facilityName', onSelectProject);
|
|
|
|
|
// helpers.showCupertinoPicker(context, projectsList,
|
|
|
|
|
// 'facilityName', onSelectProject);
|
|
|
|
|
},
|
|
|
|
|
showCursor: false,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
@ -150,7 +150,7 @@ class _LoginFormState extends State<LoginForm> {
|
|
|
|
|
readOnly: true,
|
|
|
|
|
decoration: buildInputDecoration(
|
|
|
|
|
context,
|
|
|
|
|
TranslationBase.of(context).loading,
|
|
|
|
|
TranslationBase.of(context).pleaseEnterYourProject,
|
|
|
|
|
'assets/images/password_icon.png')),
|
|
|
|
|
buildSizedBox(),
|
|
|
|
|
Row(
|
|
|
|
|
@ -334,8 +334,10 @@ class _LoginFormState extends State<LoginForm> {
|
|
|
|
|
projectsProv.getProjectsList(memberID).then((res) {
|
|
|
|
|
//hideLoading();
|
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
projectsList = res['ProjectInfo'];
|
|
|
|
|
setState(() {
|
|
|
|
|
projectsList = res['ProjectInfo'];
|
|
|
|
|
userInfo.projectID = projectsList[0]["facilityId"];
|
|
|
|
|
projectIdController.text = projectsList[0]['facilityName'];
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// handel error
|
|
|
|
|
|