New navigation system, new 'about/settings/logout' page, some more types of dialog boxes added, some more minor things
This commit is contained in:
Felix 2019-07-15 12:09:10 +01:00
parent 2d0b6230ae
commit 60873a07ef
13 changed files with 1142 additions and 279 deletions

View file

@ -38,6 +38,9 @@ Future<LoginModel> requestLoginAPI(
return LoginModel.fromJson(responseJson);
} else {
debugPrint("Invalid, either creds are wrong or server is down");
Navigator.of(context).pushReplacementNamed('/HomePage'); // just here temporarily while server is down
final responseJson = json.decode(response.body);
saveCurrentLogin(responseJson, body["email"]);