Package selection guidance compiled from public package information, community data, and project usage.
A Flutter widget for inputting quantities, combining a text field with increment and decrement buttons. Users can type values manually or adjust them using the provided buttons, ensuring intuitive and accessible numeric input. Built on TextFormField, it supports standard text input behaviors while enhancing usability for quantity selection. Ideal for forms requiring numeric inputs like shopping carts or settings.
Use cases
E-commerce product quantity selection
Form inputs requiring numeric values
Inventory management interfaces
User preference settings
Order entry systems
Key features
Built-in increment/decrement buttons
Manual text input support
Customizable step size
Responsive design across platforms
Integration with TextFormField
Suitable for
Simple quantity inputs
Mobile and web applications
Forms with numeric fields
Developers seeking lightweight spin box
Apps needing minimal setup
Considerations
Limited to basic numeric input
No built-in validation beyond text input
Requires manual handling of min/max constraints
Not suitable for complex number formatting
Depends on external styling for appearance
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Input Quantity
Flutter widget for quantity input. Increase or decrease the input value by pressing the button. It's built with text fields, so InputQty also supports manually typing quantities. Very flexible for large quantities. For example, if the user wants to enter the value 19243, it will be very difficult to only rely on buttons.
Set input limits so that input values automatically return to predefined maximum/minimum values.
Features
Simple and easy to use
Customizable
Output: int, double, or num
Style options: classic, button on the left or button on the right
Tap once to update the value, longpress for update the value continuously, or type the value manually.
Add validator form, or use custom message builder
Installation
To use this package, add input_quantity as a dependency in your pubspec.yaml file.