SankethBK / diaryvault

A personal diary application written in Flutter
https://play.google.com/store/apps/details?id=me.sankethbk.dairyapp
MIT License
108 stars 71 forks source link

Fix. fingerprint login glitch #35

Closed droidbg closed 1 year ago

droidbg commented 1 year ago

What type of PR is this? (check all applicable)

Description

AuthPage widget was getting rendered two times, one from initial route, and second time from when a AuthSessionState state change happen in bloc listener. This was applied every time a app is opened and was not just specific to fingerprint handling.

Fix

Removed initialRoute from the app, now it will build Auth Page one time, only after when all conditions are verified in Bloc Listener.

_Tested the Fix?