MichielProost / Perfect-Plate

This Android application allows cheffs around the world to create, review and discover new recipes. Users can gain experience and level up in this app by completing challenges like creating a certain amount of recipes.
1 stars 2 forks source link

Disable user input until handleSignin is complete #14

Closed MichielProost closed 4 years ago

MichielProost commented 4 years ago

The user is automatically logged in when the application starts. If he is impatient, he can cause a few errors, for example:

How can this be stopped? In the method handleSignIn() there is a 1-2 second pause before the data of the global app_user is fetched. It is in this pause, that the user can cause the errors. An idea would be to wait for the handleSignIn() method to finish. Another idea would be to block the user while appUser.isLoggedIn == false.

Anywho, this requires some investigating.

Nuytemans-Dieter commented 4 years ago

We went for a 'no need to log in'-philosophy so checking for isLoggedIn() is not a good option as it requires a log in. Waiting for handleSignin() to finish is a much better approach. We could use Flutter's AbsorbPointer for this purpose

MichielProost commented 4 years ago

Thank you for all your guidance and wisdom. Much appreciated