You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add an option, so that onQtyChanged is called only when a lonpress ends, instead of being called continuously?
The reason is that I want to change the qantity in a Cubit that triggers a reapaint of widgets and also set the value in a database table. For this, I'm only interested in the final quantity value, when the user stops increasing the value.
The text was updated successfully, but these errors were encountered:
thank you for using this package.
I understand your need. is it possible to handle it from your cubit?
I have less experiance with bloc state management. as per my knowledge , we can control when the widget rebuild.
for example, call setState means we need to rebuild.
this is update the value but not rebuild the widget
void updateVal (int newVal) {
myVal = newVal
}
this is update value, and rebuild widget with new value
Is it possible to add an option, so that onQtyChanged is called only when a lonpress ends, instead of being called continuously?
The reason is that I want to change the qantity in a Cubit that triggers a reapaint of widgets and also set the value in a database table. For this, I'm only interested in the final quantity value, when the user stops increasing the value.
The text was updated successfully, but these errors were encountered: