Skip to content
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() #3

Closed
II11II opened this issue Aug 22, 2022 · 1 comment
Closed

setState() called after dispose() #3

II11II opened this issue Aug 22, 2022 · 1 comment

Comments

@II11II
Copy link

II11II commented Aug 22, 2022

App error: setState() called after dispose(): _VitalityState#eee0e(lifecycle state: defunct, not mounted)

The timer is not cancelled after state is disposed
Please add this line inside _VitalityState

  void dispose() {
    timer.cancel();
    super.dispose();
  }
@AbdulrhmanSayedAli
Copy link
Owner

thank you for your contribution
this error has been fixed and a newer version of vitality is now available (1.0.4) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants