kevlatus / flutter_fortune_wheel

Visualize random selections with Flutter widgets like the wheel of fortune.
https://kevlatus.github.io/flutter_fortune_wheel
MIT License
109 stars 84 forks source link

FortuneStyle Doesn't work in FortuneBar #69

Closed imsidz closed 2 years ago

imsidz commented 3 years ago

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 3 years ago

@imsidz Did you manage to use custom styles?

yolticmtzz commented 3 years ago

@imsidz use styleStrategy: UniformStyleStrategy(color: Colors.purple) , when you use Bar.

stale[bot] commented 2 years ago

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.