Rotate texts after certain degree
DanielMartini opened this issue · 2 comments
DanielMartini commented
kevlatus commented
Hi @DanielMartini, you can easily achieve this with code similar to the one below:
final items = [...];
return FortuneWheel(
...
items: [
for (var i = 0; i < items.length; i++)
FortuneItem(
child: Transform.rotate(
angle: i > (items.length / 2) ? math.pi : 0,
child: Text(items[i]),
),
)
],
);
DanielMartini commented
That was simple, didn't notice, thanks @kevlatus!