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
[BUG] Looking up a deactivated widget's ancestor is unsafe. #489
Comments
Google would have helped you : LMGTFY In short: your context change and photo_view has been disposed. |
I had this error too and could not find any answer on google which fixed it. But I figured out after switching flutter channel to stable (I was using channel master), you don't get the error anymore.
|
I have also encountered this problem. I use the master version of flutter. |
the same error:
|
The same on Flutter 2.9.0-1.0.pre498 (master channel) |
yyy.... It looks like I fixed it.. But I won't push Pull request with that because it's very weird... When I put |
Same error here. flutter doctor -v
|
Please have a look into stack trace: Stack trace
|
I created a pull request for this issue -> #499 |
Thanks for the contribution! |
I have the same error. Any solution for this? |
I have the same error. |
Me too. Is it possible to do the new release soonish as the PR with the fix is already merged, right? |
Any hope for this to be fixed soon, or at least give a timeframe? Updating to the latest stable branch breaks this. |
Well, for the time being, you could change your pubspec.yaml to ...
photo_view:
git: https://github.com/bluefireteam/photo_view.git
... |
I added the below to my pubspec.yaml
I get the following message when I pub get |
@delegate-it you might try using dependency_overrides:
photo_view:
git:
url: https://github.com/bluefireteam/photo_view
ref: 8156907eecfa812b181a5a729d790f6d399f311b |
same error with Flutter 2.10.3 |
when zoom in/out images no error. |
Hi there, hoping you can update with this merge...dependencies are failing that use this repo ie flutter_quill because of this one! Thanks |
0.14.0 is out, See #505 |
Same exception in Flutter version 3 too FlutterError (Looking up a deactivated widget's ancestor is unsafe. |
Upgrade to version |
Thank you, I will try now |
When I open Photoview and dont do anything bot pops the screen I get an error:
FlutterError (Looking up a deactivated widget's ancestor is unsafe.
At this point the state of the widget's element tree is no longer stable.
To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.)
If I triggers some events, e.g. panning, scaling ,it goes well.
[✓] Flutter (Channel master, 2.6.0-12.0.pre.869, on macOS 11.4 20F71 darwin-x64, locale sv-SE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.62.3)
A known behaviour?
The text was updated successfully, but these errors were encountered: