Resolve issue when took context at refresh_physic.dart #654
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unhandled Exception: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
I/flutter (15057): Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
I/flutter (15057): #0 State.context. (package:flutter/src/widgets/framework.dart:952:9)
I/flutter (15057): #1 State.context (package:flutter/src/widgets/framework.dart:958:6)
I/flutter (15057): #2 ScrollableState.storageContext (package:flutter/src/widgets/scrollable.dart:598:38)
I/flutter (15057): #3 RefreshPhysics.createBallisticSimulation (package:pull_to_refresh/src/internals/refresh_physics.dart:268:52)
I/flutter (15057): #4 ScrollPositionWithSingleContext.goBallistic (package:flutter/src/widgets/scroll_position_with_single_context.dart:151:44)
I/flutter (15057): #5 IdleScrollActivity.applyNewDimensions (package:flutter/src/widgets/scroll_activity.dart:184:14)
I/flutter (15057): #6 ScrollPosition.applyNewDimensions (package:flutter/src/widgets/scroll_position.dart:729:15)
I/flutter (15057): #7 ScrollPositionWithSingleContext.applyNewDimensions