numberpicker 2.1.2 copy "numberpicker: ^2.1.2" to clipboard
numberpicker: ^2.1.2 copied to clipboard

NumberPicker is a widget allowing user to choose numbers by scrolling spinners.

NumberPicker Build Status Coverage Status #

NumberPicker is a custom widget designed for choosing an integer or decimal number by scrolling spinners.

ezgif com-gif-maker

Example: #

(See example for more)

class _IntegerExample extends StatefulWidget {
  @override
  __IntegerExampleState createState() => __IntegerExampleState();
}

class __IntegerExampleState extends State<_IntegerExample> {
  int _currentValue = 3;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        NumberPicker(
          value: _currentValue,
          minValue: 0,
          maxValue: 100,
          onChanged: (value) => setState(() => _currentValue = value),
        ),
        Text('Current value: $_currentValue'),
      ],
    );
  }
}
630
likes
160
pub points
99%
popularity

Publisher

unverified uploader

NumberPicker is a widget allowing user to choose numbers by scrolling spinners.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, infinite_listview

More

Packages that depend on numberpicker