flui
flui copied to clipboard
FLCountStepper 组件报错
我按照文档使用FLCountStepper组件
The following _TypeError was thrown building Builder: type 'int' is not a subtype of type 'bool'
会出现以下错误
@343629302 ok 我会跟进下
我也遇到的相同的错误, FLCountStepperController设置了defaultValue值的时候,就会报错: type 'int' is not a subtype of type 'bool'
当前使用的是0.9.0版本。
@lichenyu9024 别想了.这插件已经弃了. 我问的时候到现在都没更新过.
//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));