We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad50ef commit 136a6feCopy full SHA for 136a6fe
lib/src/base_spin_box.dart
@@ -164,8 +164,9 @@ mixin SpinBoxMixin<T extends BaseSpinBox> on State<T> {
164
if (hasFocus) {
165
_selectAll();
166
} else {
167
- final value = fixupValue(_controller.text);
168
- widget.onSubmitted?.call(value);
+ final oldValue = _value;
+ final newValue = fixupValue(_controller.text);
169
+ if (newValue != oldValue && _focusNode.canRequestFocus) widget.onSubmitted?.call(newValue);
170
}
171
});
172
0 commit comments