Skip to content

EInputNumber输入框输入和点击加减按钮冲突 #1

@dvzhou

Description

@dvzhou

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);
},
),
这是我使用的代码,当重复操作在输入框输入值,再点击加减按钮后,值会变回之前的值。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions