flutter_element
flutter_element copied to clipboard
EInputNumber输入框输入和点击加减按钮冲突
child: EInputNumber( key: ValueKey(item.id), height: 34.0, value: item.inputCount != null ? item.inputCount.toDouble() : 0.0, min: 0.0, max: item.selecttype == '0' ? 50.0 : 20.0, style: EInputNumberStyle(fontColor: theme.textTheme.bodyText2.color), onChanged: (value) { onChangedCallBack(item, value); }, ), 这是我使用的代码,当重复操作在输入框输入值,再点击加减按钮后,值会变回之前的值。
这个bug我也遇到了,是输入框焦点的问题,我把源码里绑定焦点的那一行注释了就不会报错