Resizing for the nodes. #41
Replies: 5 comments 4 replies
-
|
Thanks @vzarytovskii, that means the world to me! I've never noticed it was possible to do it in most node editors (I just checked with blender and UE5). Sounds like a cool feature. I'm happy to let you collaborate to this project and to give you the possibility to practice your skills. If you plan on future contributions I can add you as a collaborator. You seem to be on the right track with all the points you've made. A recommendation, mind the input handling, the edge might overlap with the ports and the program should distinguish what to do. If you need help don't be afraid of asking here or even on the Discord server here (not that the server was born for fl_nodes but the two projects are strictly related), also the FlutterDev community is eager to help newcomers. On an unrelated note:
|
Beta Was this translation helpful? Give feedback.
-
|
Alright, I made some progress: resize.movWill need to see how does it behave when: After that, I will make most of things configurable, so there are no surprises for any existing consumers. |
Beta Was this translation helpful? Give feedback.
-
|
Great job 👍 Ports position are accessed using widget key global coordinates so that should always work fine. One thing you should be aware of is the spatial hash grid mechanism and more specifically how nodes are inserted in it. To avoid unnecessary insertions I use the didUpdateWidget method as you can see here. A change in the entity state must occur to trigger the insertion so you must either add the size property to the state struct (also good for serialization) or add another check. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @vzarytovskii! How's it going? Don't worry, it's not a race. Just checking on you. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @vzarytovskii! How are you doing? Just checking on you after I got back on the project. I've received an invite for an hackathon that had to do with this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @WilliamKarolDiCioccio, first of all, thanks for the library, I am very new to both flutter and dart, and found it not only useful to me in my small pet project, but also a great source for the learning of Flutter libraries.
I would like to contribute to it and add a resizing support for the nodes, if it's something what is desired.
I, however, am quite new to GUI/client side programming in general and flutter in particular (I'm more of a compilers person), in case if it's something you would accept as a feature, here would be my approach to pursuing it:
_NodeWidgetState, such as_handleResizeStart,_handleResizeUpdateand_handleResizeEndto handle/set the states of the widget.Again, if it's something you see fitting in the
fl_nodes, I would be happy to bite a bullet and try implementing it, and will be grateful to any pointers or things I've missed.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions