spinning_wheel
1.0.0, released 7 weeks ago by niteshmandal1.com.np
Customizable animated spinning wheel for Flutter with weighted odds and themes.
What it does
Provides a customizable spinning wheel widget supporting weighted probabilities, server-decided results, swipe-to-spin interactions, and themed frames. It handles slice layouts, animations, and result callbacks out of the box.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a fortune wheel, prize wheel, or lucky draw feature in your app
- You want a wheel that supports weighted odds or server-dictated landing results
Skip it when
- Your application requires complex 3D physics simulations beyond standard 2D wheel spinning
Strengths
- Supports weighted odds and programmatic result targeting via `spinTo`
- Includes built-in themes, frames, and touch interactions like swipe and tap-to-spin
- Responsive design that scales cleanly to any size
Weaknesses
- Requires Flutter 3.27 / Dart 3.6 or newer
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:flutter/material.dart';
import 'package:spinning_wheel/spinning_wheel.dart';
class PrizeWheelPage extends StatelessWidget {
const PrizeWheelPage({super.key});
@override
Widget build(BuildContext context) {
final SpinnerController controller = SpinnerController();
final List<WheelSegment<int>> segments = [
WheelSegment('100', 100, color: Colors.red),
WheelSegment('200', 200, color: Colors.blue),
];
return Scaffold(
body: Center(
child: SizedBox(
width: 320,
height: 320,
child: SpinnerWheel<int>(
controller: controller,
segments: segments,
onComplete: (segment, index) {},
),
),
),
);
}
}Alternatives
Packages that do the same job and could replace spinning_wheel.
- flip_card_swiper
Swipeable card stack widget with flip animations and optional haptics.
76Compare - wheel_picker
A customizable wheel scroll picker widget for selecting values or time.
80Compare - rubber
Elastic bottom sheet widget with customizable spring animation.
77Compare - animated_emoji
Widget that displays animated emojis from the Noto Animated Emoji set
73Compare