{"repo":"kevlatus/flutter_fortune_wheel","free":true,"listed":false,"github":"https://github.com/kevlatus/flutter_fortune_wheel","clone":"git clone https://github.com/kevlatus/flutter_fortune_wheel.git","description":"Visualize random selections with Flutter widgets like the wheel of fortune.","language":"Dart","stars":222,"topics":["fortune","flutter","random","visualization"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Flutter Fortune Wheel This Flutter package includes wheel of fortune widgets, which allow you to visualize random selection processes. They are highly customizable and work across mobile, desktop and the web. You can learn more about the wheel's implementation in this article and try an interactive demo here. Quick Start First install the package via pub.dev. Then import and use the FortuneWheel: Examples The wheel of fortune is the most iconic visualization. Unfortunately, a circular shape is not the best solution when vertical screen space is scarce. Therefore, the fortune bar, which is smaller in the vertical direction, is provided as an alternative. See below for an example: Customization Drag Behavior By default, the fortune widgets react to touch and drag input. This behavior can be customized using the physics property, which expects an implementation of the PanPhysics class. If you want to disable dragging, simply pass an instance of NoPanPhysics . For the FortuneWheel, CircularPanPhysics is recommended, while the FortuneBar uses DirectionalPanPhysics.horizontal by default. If none of the available implementations, suit your needs, you can always implement a subclass of PanPhysics . The callback passed to onFling is called when the pan physics detects a fling gesture. This gives you the opportunity to select a new random item. Item Styling FortuneItems can be styled individually using their style property. Styling a FortuneWidget's items according to a common logic is","default_branch":null,"files":null,"tree":[],"storefront":"/r/kevlatus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kevlatus/flutter_fortune_wheel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}