-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unhandled Exception: Exception: Animated list state not found from GlobalKey<AnimatedListState> #12
Comments
Hi Alan, this issue has been resolved in the release 2.1.0. |
@allanfann Are u able to overcome from this issue? |
hi,@jawwad-hassan89,I had the same issue, I used the latest 2.2.1, I only had 6 nodes, but I also got this error, and this is my code:
and this is error stack:
|
I finally solved the problem by removing the late keyword, but I don't know if that's the right way to do it:
But I've only solved half of the problem, there's still something wrong with the UI, my TreeView is placed on the second page of a PageView, and the onTreeReady callback function is executed for the first time |
2024-08-29.03.11.38.mov |
Hi @bughoho, will try to reproduce this issue and update you. |
My code:
for (var element in _rootNode.childrenAsList) { if (element.key == parentKey.toString()) { try { element .add(TreeNode(key: context.uid.toString())); } catch (e) {} return; } }
Exception:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Animated list state not found from GlobalKey
#0 _AnimatedListState.insertItem
tree_view.dart:495
#1 AnimatedListController.insert
animated_list_controller.dart:65
#2 AnimatedListController.insertAll
animated_list_controller.dart:70
#3 AnimatedListController.expandNode
animated_list_controller.dart:116
#4 AnimatedListController.handleAddItemsEvent
animated_list_controller.dart:208
#5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1593:10)
#6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#7 _DelayedData.perform (dart:async/stream_impl.dart:515:14)
The text was updated successfully, but these errors were encountered: