Open VikasJilla opened 2 years ago
Hi, By any chance do you haev any example code that I can look into. Like for example whats the keys you are using. You do have to ensure that there are no duplicate keys for the nodes
@nabil6391 below is the sample code that was leading to the error.
final GlobalKey _graphViewKey = GlobalKey<State<GraphView>>();
GraphView(
key: _graphViewKey,
graph: graph,
algorithm: walkerAlgorithm!,
animated: true,
paint: Paint()
..color = AppColors.relationsGreyColor
..strokeWidth = 1
..style = PaintingStyle.stroke,
builder: (Node node) {
return buildNode(node);
},
)
Hi,
I have observed that in GraphView.dart, when we pass a key to GraphView, you are passing it to both super constructor, as well as the widget being returned in build method. I think this should not be done. Because of this we are getting an issue as below:
Please resolve this as soon as possible. Please let me know if there is something I missed.