multi_wheel_number 0.0.2 copy "multi_wheel_number: ^0.0.2" to clipboard
multi_wheel_number: ^0.0.2 copied to clipboard

A widget that displays a number with a single wheel for each number, controlling the animations so that the number changes are smooth and user-friendly.

example/main.dart

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

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Material App',
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  int _number = 90;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Example MultiWheel Number'),
      ),
      body: Center(
        child: MultiWheelNumber(itemExtent: 35, fontSize: 25, number: _number),
      ),
      floatingActionButton: FloatingActionButton(
        child: const Text('+5'),
        onPressed: () {
          _number += 5;
          setState(() {});
        },
      ),
    );
  }
}
8
likes
160
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A widget that displays a number with a single wheel for each number, controlling the animations so that the number changes are smooth and user-friendly.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on multi_wheel_number