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
415
stars
115
forks
source link
Add a button (and repective callback) to each connection (arrow) #99
I'm building a sort of dynamic tree using the GraphView plugin (great job with the plugin, by the way, it's awesome), and I'm stuck trying to add a way to break connections between nodes.
In the attached image I drew little red crosses illustrating what I need. When I'd click a red cross, a callback would be called with the 'from' node ID and the 'to' node ID, the 2 nodes involved in the connection. This way I would be able to break the connection.
Since customization is only possible for the nodes, I can't do connection related stuff. Could you add a way for achieving this?
Maybe just add a default button to each connection so we can implement its callback (make sure the callback has the 'to' and 'from' parameters).
Let me know if this can be done, and how quickly. Thank you.
I'm building a sort of dynamic tree using the GraphView plugin (great job with the plugin, by the way, it's awesome), and I'm stuck trying to add a way to break connections between nodes.
In the attached image I drew little red crosses illustrating what I need. When I'd click a red cross, a callback would be called with the 'from' node ID and the 'to' node ID, the 2 nodes involved in the connection. This way I would be able to break the connection.
Since customization is only possible for the nodes, I can't do connection related stuff. Could you add a way for achieving this?
Maybe just add a default button to each connection so we can implement its callback (make sure the callback has the 'to' and 'from' parameters).
Let me know if this can be done, and how quickly. Thank you.