NearHuscarl / flutter_login

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

Use .unfocus() instead of problematic requestFocus(FocusNode()) #371

Closed otto-dev closed 1 year ago

otto-dev commented 1 year ago

Fixes #190, maybe other issues.

Calling requestFocus(FocusNode()) leads to errors on e.g. the next call to FocusScope.of(context).requestFocus(_passwordFocusNode), because the FocusNode used for the hack is not attached to any context.

juliansteenbakker commented 1 year ago

Thank you for your contribution!