spinning_wheel 0.0.1 copy "spinning_wheel: ^0.0.1" to clipboard
spinning_wheel: ^0.0.1 copied to clipboard

A customizable and animated spinning wheel for Flutter, perfect for games, lucky draws, and prize wheels.

Spinning Wheel ๐ŸŽก

A fully customizable spinning wheel for Flutter applications! Easily create fortune wheels, prize spinners, or game-based random selectors with smooth animations and custom segments.

๐ŸŒŸ Features

โœ… Fully customizable spinning wheel ๐ŸŽจ โœ… Supports text labels, colors, and images ๐Ÿ–ผ๏ธ โœ… Smooth animation with realistic spin physics ๐ŸŽฏ โœ… Callback for detecting spin completion ๐Ÿ”ฅ

๐Ÿ“ฆ Installation

Add this package to your pubspec.yaml:

dependencies: spinning_wheel: latest_version Then, run:

flutter pub get ๐Ÿ”ง Usage

1๏ธโƒฃ Import the Package import 'package:spinning_wheel/spinning_wheel.dart';

2๏ธโƒฃ Create a SpinnerController final SpinnerController controller = SpinnerController();

3๏ธโƒฃ Define Wheel Segments List

4๏ธโƒฃ Add the SpinnerWheel Widget SpinnerWheel( controller: controller, segments: segments, wheelColor: Colors.white, onComplete: (result) { print("You won: ${result.label}"); }, );

5๏ธโƒฃ Start Spinning! controller.startSpin();

๐Ÿ–ผ๏ธ Screenshot

๐Ÿ“œ API Reference

Property Type Description controller SpinnerController Controls the spin animation segments List

This package is licensed under the MIT License.

๐Ÿ™ Support

If you like this package, โญ Star it on GitHub! For issues or feature requests, open an issue on GitHub.

๐Ÿš€ Happy Spinning! ๐ŸŽกโœจ

6
likes
0
points
235
downloads

Publisher

verified publisherniteshmandal1.com.np

Weekly Downloads

A customizable and animated spinning wheel for Flutter, perfect for games, lucky draws, and prize wheels.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on spinning_wheel