amino-health / oura-intervention

Web-application for the "Självständigt arbete inom IT" course
Mozilla Public License 2.0
1 stars 1 forks source link

Firebase integration #15

Closed JakobPaulsson closed 2 years ago

JakobPaulsson commented 2 years ago

Added some UI to connect the database functions for registering a user and logging in. Could unfortunately not get this to work properly using the 'flutter_login' library as it has some weird preconceptions, like that the onLogin function has to return a String, which does not fit well with the existing code that works with enums. So I just added a small preliminary UI. If registration or login is successful, the user is moved to the "dashboard", else an error message is displayed above the input like so:

image