widget_spinning_wheel 0.0.1
widget_spinning_wheel: ^0.0.1 copied to clipboard
Customisable widget for a 'spin the wheel'
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:widget_spinning_wheel/widget_spinning_wheel.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Spinning Wheel Example'),
),
body: Center(
child: WidgetSpinningWheel(
labels: ['Option 1', 'Option 2', 'Option 3'],
onSpinComplete: (String label) {
print(label);
},
size: 200,
),
),
),
);
}
}