diff --git a/lib/widgets/auth/login_form.dart b/lib/widgets/auth/login_form.dart index e78e0217..4709a94a 100644 --- a/lib/widgets/auth/login_form.dart +++ b/lib/widgets/auth/login_form.dart @@ -117,8 +117,8 @@ class _LoginFormState extends State { }, 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 { 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 { 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 { 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