input_quantity
2.6.0, released 7 months ago by pmatatias.com
A widget for quantity input with increment and decrement buttons and manual typing support.
What it does
Provides a Flutter widget built with TextFormField that allows users to increase or decrease numeric values using buttons or type them manually. Supports output types like int, double, or num, along with custom validators and limits.
AI-written summary of version 2.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quantity selector for e-commerce carts or order forms.
- You want a text field combined with increment and decrease buttons.
- You need to restrict input values within specific minimum and maximum limits.
Skip it when
- You require a complex date or time picker rather than a simple numeric quantity input.
- You do not need increment/decrement buttons and a standard TextFormField is sufficient.
Strengths
- Supports both manual typing and button-based adjustments.
- Customizable appearance with orientation and style options.
- Supports multiple output data types (int, double, num).
Weaknesses
- Limited to single-purpose quantity inputs.
- Does not handle complex text input masks outside of basic numeric ranges.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
InputQty(
maxVal: 100,
initVal: 0,
minVal: -100,
steps: 10,
onQtyChanged: (val) {
print(val);
},
)Alternatives
Packages that do the same job and could replace input_quantity.
- flutter_intl_phone_field
International phone number input with country picker, formatting, and validation for 250+ countries.
76Compare - fancy_credit_card_input
A highly customizable credit card input field with built-in animations and card brand detection.
74Compare - intl_mobile_field
Customized Flutter TextFormField to input international mobile numbers with country codes.
73Compare - moform
Reactive, type-safe form fields for Flutter without managing TextEditingControllers.
60Compare
Works with
Packages commonly used together with input_quantity: ones it builds on, ones built on it, and its own family.