Skip to content
pubscout

numberpicker

2.1.2, released 4 years ago by an unverified publisher

A custom widget allowing users to choose numbers by scrolling spinners.

WASM-ready
$ flutter pub add numberpicker
Source repository

What it does

NumberPicker provides scrolling spinners that let users select integer or decimal numbers. It supports features like horizontal orientation, custom text styles, haptics, and infinite loops.

AI-written summary of version 2.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a dedicated picker widget for integer or decimal values.
  • You want users to select numbers using a scrollable spinner interface.

Skip it when

  • You prefer standard text input fields for numeric entry.
  • You require complex form validation outside of standard value selection.

Strengths

  • Easy integration with standard Flutter widgets and state management.
  • Supports both integer and decimal number picking.
  • Provides styling options like text styles and selected item decorations.

Weaknesses

  • Dialog wrappers were removed in 2.0.0, requiring custom implementation if a dialog picker is needed.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
NumberPicker(
  value: _currentValue,
  minValue: 0,
  maxValue: 100,
  onChanged: (value) => setState(() => _currentValue = value),
)

Alternatives

Packages that do the same job and could replace numberpicker.

  • wheel_chooser

    A wheel-style spinner widget for choosing numbers, strings, or custom widgets.

Works with

Packages commonly used together with numberpicker: ones it builds on, ones built on it, and its own family.