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

Update paint without updating graphView #35

Closed pro100svitlo closed 3 years ago

pro100svitlo commented 3 years ago

Hello!

Is there a way to update the color of the pain without refreshing the whole GraphView? Right now when I need to highlight some flow - I remove all nodes and all edges and add a new one with proper pain.

But it would be nice to add some possibility to refresh color (maybe the node itself as well) without full recreation. It probably might be achievable with the builder method.

nabil6391 commented 3 years ago

Hi, Which algorithm are you using? I think this should already be possible setState, after changing the edges paint

pro100svitlo commented 3 years ago

thanks, it works.