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:
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: