roulette 0.3.0 copy "roulette: ^0.3.0" to clipboard
roulette: ^0.3.0 copied to clipboard

This is a library provide a simple roulette widget which usually used for lottery.

0.3.0 2026/3/4 #

New feature #

  • Physics-based animation support via PhysicsAnimationConfig. The roulette wheel now decelerates naturally using a friction simulation, with duration determined by the drag coefficient.

⚠ Breaking changes: #

  • The duration parameter has been moved from rollTo into CurveAnimationConfig. When no AnimationConfig is provided, the default CurveAnimationConfig (with default duration and curve) is used automatically. For more information, check the Migration Guide here.

0.2.2+1 2026/3/3 #

Bugfix #

  • Fix SectionImageLayout.rotatedFit incorrectly using TileMode.clamp instead of TileMode.repeated, which caused section background images to render incorrectly under this layout mode.

0.2.2 2026/3/3 #

New feature #

  • Add an enum SectionImageLayout to control how a background image is laid out within each roulette section. See API documentation for details. Thanks to @TheMrAleX for the contribution.

Others #

  • Build with Flutter SDK 3.41, update lint version

0.2.1 2025/12/4 #

  • Build with latest Flutter SDK, update lint version and fix lint issue.
  • No breaking changes and new features.

0.2.0 - 2024-10-12 #

  • Update flutter lint version and fix lint issue.

⚠ Breaking changes: #

  • Minimum required Flutter version has been upgraded to 3.7.0.
  • The Roulette and RouletteController has been reworked, check the Migration Guide here.

0.1.5 2023/8/31 #

New feature #

  • Image support in Roulette by @antoninhrlt: You can now use ImageProviders as roulette sector background!

0.1.4 2023/5/15 #

New feature #

SDK upgrade: #

  • Update Flutter version to latest stable (3.10.0), and enable the dart3 support.
  • ⚠ If this update break your build because of the SDK upgrade, please feel free to raise a issue.

0.1.3+1 2022/11/2 #

  • Document image reference fix
  • Usage colorBuilder syntax fix
  • Make Roulette a StatelessWidget

0.1.3 - 2022-10-21 #

Behavior changes: #

  • rollTo method now continue from the last stopped point, if you need the roulette roll from the "zero" position, call RouletteController.resetAnimation before rollTo.

SDK upgrade: #

  • Update Flutter version to latest (3.3.4)
  • ⚠ If this update break your build because of the SDK upgrade, please feel free to raise a issue.

0.1.2 - 2022-06-25 #

  • Update Flutter version to latest (3.0.3)
  • Update lint to 2.0.1 and fix lint warnings
  • Fix rollTo method's document, there's no random parameter but offset
  • Clean up the example
  • Add more detail usage to README.md
  • ⚠ If this update break your build because of the SDK upgrade, please feel free to raise a issue.

0.1.1 - 2022-05-31 #

  • Fix a bug which causes the full-width characters layout incorrectly. (Thanks for @SeeLog's contribution!)

0.1.0+1 - 2022-01-15 #

  • Readme document snapshot resource fix.

0.1.0 - 2022-01-11 #

⚠ Breaking changes: #

  • The RouletteController parameter clockwise has been removed since it does nothing. If you want to control the roll direction, use clockwise in RouletteController.rollTo instead.

Normal changes: #

  • The RouletteController public constructor is now a factory constructor.

Others: #

  • Add some new test case
  • Fix some document
  • Update some example codes

0.0.1+2 - 2021-12-14 #

  • Fix some document

0.0.1+1 - 2021-12-13 #

  • Change min sdk version to 2.12.0(The first SDK that supports null safety)
  • Fix some pub score warnings

0.0.1 - 2021-12-12 #

  • Initial release of the roulette package!
  • Please check the home page for package information
50
likes
160
points
676
downloads

Publisher

verified publisherwolframe.org

Weekly Downloads

This is a library provide a simple roulette widget which usually used for lottery.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, meta

More

Packages that depend on roulette