fyne-x
fyne-x copied to clipboard
Propose utils package
Are there any more wrappers that would make sense to be added? The most simple that I can think of is https://github.com/fyne-io/fyne/blob/v2.1.4/canvasobject.go#L96 (no requirement, just getting the idea out there). Focusable and draggable are likely the ones that would the most useful but they are a lot more complex.
Doesn't Go tell us to avoid generic utils
package?
Great ideas here but not sure about this naming as it doesn't convey what the types internally will do / be.
@Jacalz maybe drag and drop yes. I can try to add this. Focusable is maybe a bit weird on, e.g., images…
@andydotxyz Yes, “utils” is a bad idea, maybe “addons” or “adapters”, or... “extends”... Any idea ?
How about “wrappers”?
Maybe also a simple wrapper that provide a CreateRenderer for a specified object (both of the wrapper in this PR duplicate this code and the PR with layout would also benefit from it).
Also a feature to add to the Tappable wrapper, maybe having the ability to do the same animation/effect automatically as when a button get tapped would make sense (I might make that something you can enable/disable).
Maybe also a simple wrapper that provide a CreateRenderer for a specified object (both of the wrapper in this PR duplicate this code and the PR with layout would also benefit from it).
Isn't this what the core widget.SimpleRenderer
does?
@metal3d Do you have any plans on getting this done soon? It would be a great addition to fyne-x :)
I'm still not sure about the Set...
naming, earlier @lucor suggested Make...
instead - what do @Jacalz and @Bluebugs think (having already approved).
Using Make instead of Set sounds good to me too. I would approve such a change.
Changed to MakeXXX and fixed the comment import to "wrapper".