NearHuscarl / flutter_login

Provides login screen with login/signup functionalities to help speed up development
MIT License
1.48k stars 788 forks source link

fix: Use mounted instead of context.mounted in LoginCard #481

Open vargab95 opened 5 months ago

vargab95 commented 5 months ago

In my original PR, I've used mounted instead of context.mounted. However, it was merged as context.mounted checks. The problem is that, context.mounted has a hidden null check in the context getter of the State class. So an issue similar to #468 reappeared again in my crashlytics report. That's why I would like to replace the "context.mounted" checks in the LoginCard component with "mounted".