flutter_spinbox
0.13.1, released 4 years ago by ubuntufluttercommunity.org
Numeric input widget with a text field and spin buttons for quick adjustments
What it does
Provides Material and Cupertino numeric input widgets combining an input field with quick-adjustment spin buttons. Supports large value ranges, high precision, and custom behaviors via callbacks like onChanged and onSubmitted.
AI-written summary of version 0.13.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need numeric inputs with both direct text entry and increment/decrement buttons
- Sliders are too inaccurate and plain text fields are inconvenient for quick value changes
- You need both Material and Cupertino style numeric spin boxes
Skip it when
- You only need a standard text form field without increment buttons
- You are looking for non-numeric pickers or date pickers
Strengths
- Supports both Material and Cupertino designs out of the box
- Provides range limits, step values, and formatting options
- Includes helpful callbacks for validation and submission
Weaknesses
- Limited to numeric inputs only
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
SpinBox(
min: 1,
max: 100,
value: 50,
onChanged: (value) => print(value),
)Alternatives
Packages that do the same job and could replace flutter_spinbox.
- form_builder_extra_fields
Additional ready-made form input fields for the flutter_form_builder package
80Compare - form_builder_file_picker
File picker input field for the flutter_form_builder package.
70Compare - number_inc_dec
A Flutter widget accepting numeric values with increment and decrement buttons.
50Compare - flutter_input_chips
Flutter widget that builds an input field with input chips options.
45Compare
Works with
Packages commonly used together with flutter_spinbox: ones it builds on, ones built on it, and its own family.