nabil6391 / graphview

Flutter GraphView is used to display data in graph structures. It can display Tree layout, Directed and Layered graph. Useful for Family Tree, Hierarchy View.
MIT License
420 stars 114 forks source link

1.0.0.-nullsafety - Keys aren't being recorded #39

Closed JohnGalt1717 closed 2 years ago

JohnGalt1717 commented 3 years ago

Take:

Node getNode(ContentGraphDto content) { return Node( InkWell( child: Container( height: 150, width: 250, child: Text(content.name), ), ), key: ObjectKey(content), ); }

when inspecting the result of this function, you'll note that the key is ValueKey with a number in it and not the objectkey that was passed.

nabil6391 commented 2 years ago

This way is now deprecated. Please use Node.Id()