RFC: Introduce a new Edge container
Description:
This new container is a replacement for container.NewBorder but without the footguns. There is a centre item instead of a slice of objects that act like a Stack container. The centre item can optionally be nil also.
Checklist:
- [x] Tests included.
- [x] Lint and formatter run with no errors.
- [x] Tests all pass.
Where applicable:
- [x] Public APIs match existing style and have Since: line.
- [ ] Any breaking changes have a deprecation path or have been discussed.
This uses the layout.NewEdge name which stutters less than layout.NewEdgeLayout but is less similar to the other layouts. Should we rename (I.e. create new functions and deprecate the old ones) with better naming?
coverage: 65.017% (+0.04%) from 64.975% when pulling 418cfb35ad0cd67d7c4f723b7f289976be011cc6 on Jacalz:edge-container into 56342a2b034a5772d6c27d2a23facd6c43cfa6a0 on fyne-io:develop.
Hmm, if we think that having no 5th parameter for border we could potentially move it from 4 to 5 parameters and the optional becomes 6 onwards in case people did use the ability to have more than a single item in the centre.
I'm not totally sure it's worth a new layout (and new container?) to fix this one issue.
yeah, probably not