number_selector
1.0.7, released 4 years ago by an unverified publisher
Widget for selecting an integer via buttons or a textfield
WASM-ready
What it does
Provides a customizable UI for choosing an integer value. It supports increment/decrement buttons, skip to first/last, ESC cancel, Enter update, and negative numbers.
AI-written summary of version 1.0.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- Simple numeric input in forms
- Custom numeric picker in dialogs
- Replacing a plain TextField for integer entry
Skip it when
- Complex validation logic that requires custom validators
- Applications needing non-integer numeric input
Strengths
- Highly customizable UI
- Debounced input and non-nullable update delay
- Supports negative and positive integers
Weaknesses
- No built-in validation or formatting beyond integers
- Limited to integer values only
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
```dart
NumberSelector(
current: 47,
min: 1,
max: 50,
onUpdate: (number) {
// Your magic here
},
);
```Alternatives
Packages that do the same job and could replace number_selector.
- dropdown_flutter
Customizable dropdown with search, multi‑select, and built‑in validation
72Compare - gradient_elevated_button
Custom elevated button with gradient background for Flutter apps
58Compare - flutter_grid_button
Flutter widget that arranges buttons in a grid layout.
60Compare - rounded_loading_button_plus
Animated button with loading, success and error states for Flutter.
50Compare