Arokip / flutter_diagram_editor

Fllutter diagram editor library
MIT License
116 stars 38 forks source link

Draw Components in front of Links #48

Closed ac-arconomy closed 4 months ago

ac-arconomy commented 5 months ago

By drawing the links behind the components the links do not get in the way when clicking component to edit.

Arokip commented 5 months ago

Hello, thanks for the PR. I see it's a small change but I cannot merge it because other people would like to have it the old way.

Can you think of an option that would be added to canvas to switch the order of components and links on the canvas?

Thanks

ac-arconomy commented 5 months ago

I've updated the PR so that it will work both ways, the default displays links in front. I can override the method in the canvas_widget_policy. It's not pretty but it works :-)