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

fix: ScrollContext.storageContext时element可能已经unmounted #510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anjihang
Copy link

@anjihang anjihang commented Aug 4, 2021

在某些情况下可能会出现下面的异常:
I/flutter ( 7932): Another exception was thrown: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
E/flutter ( 7932): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
E/flutter ( 7932): Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
E/flutter ( 7932): #0 State.context. (package:flutter/src/widgets/framework.dart:909:9)
E/flutter ( 7932): #1 State.context (package:flutter/src/widgets/framework.dart:915:6)
E/flutter ( 7932): #2 ScrollableState.storageContext (package:flutter/src/widgets/scrollable.dart:620:38)
E/flutter ( 7932): #3 RefreshPhysics.createBallisticSimulation (package:pull_to_refresh/src/internals/refresh_physics.dart:268:52)

@syssam
Copy link

syssam commented Dec 11, 2021

face the same issue.

lauglam pushed a commit to lauglam/pull_to_refresh that referenced this pull request Jun 17, 2022
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

Successfully merging this pull request may close these issues.

2 participants