flutter_fortune_wheel
1.3.2, released 2 years ago by kevlatus.de
Widgets for spinning wheels of fortune and fortune bars to visualize random selection.
What it does
Provides customizable widgets like FortuneWheel and FortuneBar that visualize random selection processes with animations, physics, and item styling. It uses streams to control selection outcomes and supports user touch interactions.
AI-written summary of version 1.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to implement a spinning prize or decision wheel in a Flutter app.
- You want to visualize random selections using a horizontal fortune bar or a circular wheel.
Skip it when
- You need complex data visualization charts like pie or bar graphs.
- You do not need any random selection or wheel features.
Strengths
- Highly customizable items, styles, indicators, and physics.
- Works across mobile, desktop, and web platforms.
Weaknesses
- Limited to specific wheel and bar visualization use cases.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
StreamController<int> controller = StreamController<int>();
FortuneWheel(
selected: controller.stream,
items: [
FortuneItem(child: Text('Han Solo')),
FortuneItem(child: Text('Yoda')),
FortuneItem(child: Text('Obi-Wan Kenobi')),
],
)Alternatives
Packages that do the same job and could replace flutter_fortune_wheel.
- spinning_wheel
Customizable animated spinning wheel for Flutter with weighted odds and themes.
65Compare - prompt_dialog
A JavaScript-like prompt dialog widget for Flutter applications.
50Compare - awesome_bottom_bar
A customizable bottom navigation bar with various animated styles.
50Compare - confirm_dialog
An easy-to-use confirm dialog widget for Flutter with a JS-like syntax.
45Compare
Works with
Packages commonly used together with flutter_fortune_wheel: ones it builds on, ones built on it, and its own family.