-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 setState() called after dispose(): _EmailVerificationBadgeState#cd282(lifecycle state: defunct, not mounted) #353
Comments
Hi @JestrabikR - do you mind providing a full reproduction code repository demonstrating this issue so I can check, please? |
Hello @russellwheatley, thank you. I was able to reproduce it with this code. To reproduce, you do the same as described above:
main.dart:
test_page.dart:
|
Hi @JestrabikR - I have a tentative fix for your issue. Do you mind trying out that branch and letting me know if it fixes your issue? Here is the PR with relevant branch: #419 |
@JestrabikR - I couldn't get your example repro to work so it would be great if you could confirm |
I had this similar issue, and the fix above did fix it for me. The behavior on a pixel 9 api 35 before the fix in #419 above:
The behavior on a pixel 9 api 35 after the fix in #419 above:
|
@KKrider - thank you for confirmation 🙏 , I'll look to get this in the next release. |
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Android
List of dependencies used.
flutter pub deps -s list
dev dependencies:
transitive dependencies:
Steps to reproduce
I can reproduce this bug in my app when I:
Expected Behavior
If I pick the image without closing the widget on profile screen, image is display without an error
Actual Behavior
If I close the widget on profile screen and then try to pick image, error is thrown after the
setState(() { });
Additional Information
Error output:
The text was updated successfully, but these errors were encountered: