Problems updating the current value with Provider
von-maurus opened this issue · 1 comments
von-maurus commented
The value of currentValue or in that case "cantidadProducto" is not changing when scrolling down or up. What happens is that it returns to the initial value or current value.
This is the implementation of the numberpicker with Provider:
Method to update the current value:
void updateNumberSelector(int cantidad) { cantidadProducto = cantidad; notifyListeners(); }
varadgauthankar commented
You have hardcoded the value to 1, in your case change it to cantidadProducto.