widget_spinning_wheel 0.0.1 copy "widget_spinning_wheel: ^0.0.1" to clipboard
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,
          ),
        ),
      ),
    );
  }
}
3
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Customisable widget for a 'spin the wheel'

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on widget_spinning_wheel