Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from generalxhd/v1.1.2
Browse files Browse the repository at this point in the history
fixed #4
  • Loading branch information
stonith404 committed Dec 12, 2021
2 parents 44f62ed + 9bc483f commit 3de9403
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions lib/shared/FUNCTIONS.dart
Expand Up @@ -43,17 +43,17 @@ Future getUserInfo() async {
filters: ["uid=${accountResponse['\$id']}"]))["documents"][0];

user = User(
accountResponse['\$id'],
accountResponse['name'],
accountResponse['registration'],
accountResponse['status'],
accountResponse['passwordUpdate'],
accountResponse['email'],
accountResponse['emailVerification'],
dbResponse["gradeType"],
dbResponse["choosenSemester"],
dbResponse["\$id"],
);
accountResponse['\$id'],
accountResponse['name'],
accountResponse['registration'],
accountResponse['status'],
accountResponse['passwordUpdate'],
accountResponse['email'],
accountResponse['emailVerification'],
dbResponse["gradeType"],
dbResponse["choosenSemester"],
dbResponse["\$id"],
);
}

return "done";
Expand Down Expand Up @@ -266,8 +266,7 @@ formatDateForClient(date) {
}
//launch url with the package "url launcher"

void launchURL(_url) async =>
await canLaunch(_url) ? await launch(_url) : throw 'Could not launch $_url';
void launchURL(_url) async => await launch(_url);

//clears all variables when user sign out
clearVariables() {
Expand Down

0 comments on commit 3de9403

Please sign in to comment.