we need to locate 8 buttons in a shape of half circle with equal distance from another button like shown in picture below:
(https://phpout.com/wp-content/uploads/2023/05/F0R75.png)
- we tried to use positioned widgets but it didnt work.
we need to locate 8 buttons in a shape of half circle with equal distance from another button like shown in picture below:
(https://phpout.com/wp-content/uploads/2023/05/F0R75.png)
2
Answers
Try this:
Now you can use the HalfCircleButton widget as follows:
This is what my solution looks like:
SemicircleLayout
I hope this works for you.
Here is the code for this layout:
To use this widget you give it array of children, center widget and radius.
Example of usage:
// RoundButton() is a custom Widget I used for buttons