wtf_rotary_dial 0.1.0 copy "wtf_rotary_dial: ^0.1.0" to clipboard
wtf_rotary_dial: ^0.1.0 copied to clipboard

The widget allows you to enter numbers by rotating the spinner of the rotary dial.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:wtf_rotary_dial/wtf_rotary_dial.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'WTF Rotary Dial',
      home: Scaffold(
        body: Center(
          child: RotaryDial(
            onDigitSelected: (value) {
              // The value is entered number.
            },
            rotaryDialThemeData: RotaryDialThemeData(
              spinnerColor: const Color(0xFFFFFFFF),
              rotaryDialColor: const Color(0xFF1871F0),
              dialColor: const Color(0xFF529AFF),
              numberColor: const Color(0xFFFFFFFF),
              margin: null,
              dialBorderRadius: null,
            ),
            duration: const Duration(milliseconds: 500),
            curve: Curves.decelerate,
          ),
        ),
      ),
    );
  }
}
13
likes
150
points
18
downloads

Publisher

verified publisherflutter.wtf

Weekly Downloads

The widget allows you to enter numbers by rotating the spinner of the rotary dial.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on wtf_rotary_dial