embraceitmobile / animated_tree_view

Animated TreeView based on AnimatedList allows building fully customizable Nodes that can be nested to infinite levels and children.
https://pub.dev/packages/animated_tree_view
MIT License
59 stars 29 forks source link

Exception has occurred. #7

Closed JrLouis1101 closed 1 year ago

JrLouis1101 commented 1 year ago

Hello, I implemented TreeView.simpleTyped but when I enter the page I get this error:

Exception has occurred. ActionNotAllowedException (ActionNotAllowedException: The insertNodes stream is not allowedfor the ListenableNode. The index based operations like 'insert' are not implemented in ListenableNode})

after that, the node tree appears normally. Can someone help me?

jawwad-hassan89 commented 1 year ago

Hi Louis, are you attempting to listen to the insertedNodes stream in your ListenableNode? If that is the case, then the exception is merely stating that the ListenableNode does not support listening to the stream of insertedNodes and that you should remove the listener. If you really need to listen to the insertedNodes then you should use the constructor TreeView.indexTyped instead, as it supports the index based operations like insert.