FortuneStyle Doesn't work in FortuneBar
imsidz opened this issue · 3 comments
imsidz commented
Describe the bug
FortuneStyle is not working in FortuneItem when I use FortuneBar
I want to make Roulette with the help of FortuneBar and there is 3 colors black green white so I need to define colors in FortuneItem
FortuneBar(
duration: Duration(seconds: 3),
animateFirst: false,
selected: selected.stream,
items: [
FortuneItem(
child: Text('0'),
style: FortuneItemStyle(
color: Colors.green,
textStyle: TextStyle(
fontWeight: FontWeight.bold, fontSize: 15))),
FortuneItem(
child: Text('32'),
style: FortuneItemStyle(
color: Colors.grey,
)),
FortuneItem(child: Text('15')),
FortuneItem(child: Text('19')),
FortuneItem(child: Text('4')),
FortuneItem(child: Text('21')),
FortuneItem(child: Text('2')),
],
),
yolticmtzz commented
@imsidz Did you manage to use custom styles?
yolticmtzz commented
@imsidz use styleStrategy: UniformStyleStrategy(color: Colors.purple) , when you use Bar.
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.