FLCountStepper 组件报错
dazed-daydreamer opened this issue · comments
Liang Zhihao commented
我按照文档使用FLCountStepper组件
The following _TypeError was thrown building Builder:
type 'int' is not a subtype of type 'bool'
会出现以下错误
Hanran commented
@343629302 ok 我会跟进下
lichenyu9024 commented
我也遇到的相同的错误,
FLCountStepperController设置了defaultValue值的时候,就会报错:
type 'int' is not a subtype of type 'bool'
当前使用的是0.9.0版本。
Liang Zhihao commented
@lichenyu9024 别想了.这插件已经弃了. 我问的时候到现在都没更新过.
zhangwei911 commented
//530行(https://github.com/Rannie/flui/blob/master/lib/src/widgets/count_stepper.dart)
super(defaultValue ?? min > 0 ? min : 0);
//改为
super(defaultValue ?? (min > 0 ? min : 0));