QuantityInput class
Constructors
-
QuantityInput({required dynamic value, required dynamic onChanged(String), dynamic step = 1, int decimalDigits = 1, Color? buttonColor, Color? iconColor, String label = '', bool readOnly = false, bool acceptsNegatives = false, bool acceptsZero = false, dynamic minValue = 1, dynamic maxValue = 100000, QuantityInputType? type = QuantityInputType.int, double inputWidth = 80, InputDecoration? decoration, double elevation = 5})
-
Creates a widget that can be used to manage number inputs
Properties
-
acceptsNegatives
→ bool
-
If set to true, the input can accept negative values
final
-
acceptsZero
→ bool
-
If set to true, the input can accept the value 0
final
-
buttonColor
→ Color?
-
Sets color for increment and decrement buttons
final
-
decimalDigits
→ int
-
The number of decimal places that can be displayed for double input
final
-
decoration
→ InputDecoration?
-
Sets custom InputDecoration to the widget TextFormField
final
-
elevation
→ double
-
Sets elevation to increment and decrement buttons
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
iconColor
→ Color?
-
Sets color for icons inside increment and decrement buttons
final
-
inputWidth
→ double
-
The width of the textfield input
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
label
→ String
-
Sets label for input
final
-
maxValue
→ dynamic
-
Set max value to be displayed in input
final
-
minValue
→ dynamic
-
Set min value to be displayed in input
final
-
onChanged
→ dynamic Function(String)
-
Detects changes to the input and sends value through param
final
-
readOnly
→ bool
-
Determines if the input will be readOnly
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
step
→ dynamic
-
The value that is incremented or decremented each time the user presses a button
final
-
type
→ QuantityInputType?
-
Determines if the input will manage values as int or double
final
-
value
→ dynamic
-
Has to be an int or double depending on QuantityInputType variable
final