flui icon indicating copy to clipboard operation
flui copied to clipboard

FLCountStepper 组件报错

Open dazed-daydreamer opened this issue 4 years ago • 4 comments

我按照文档使用FLCountStepper组件

The following _TypeError was thrown building Builder: type 'int' is not a subtype of type 'bool'

会出现以下错误

dazed-daydreamer avatar Jun 04 '20 02:06 dazed-daydreamer

@343629302 ok 我会跟进下

Rannie avatar Jun 04 '20 02:06 Rannie

我也遇到的相同的错误, FLCountStepperController设置了defaultValue值的时候,就会报错: type 'int' is not a subtype of type 'bool'

当前使用的是0.9.0版本。

lichenyu9024 avatar Oct 28 '20 08:10 lichenyu9024

@lichenyu9024 别想了.这插件已经弃了. 我问的时候到现在都没更新过.

dazed-daydreamer avatar Nov 02 '20 08:11 dazed-daydreamer

//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));

zhangwei911 avatar Jul 04 '21 04:07 zhangwei911