Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLCountStepper 组件报错 #36

Open
dazed-daydreamer opened this issue Jun 4, 2020 · 4 comments
Open

FLCountStepper 组件报错 #36

dazed-daydreamer opened this issue Jun 4, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@dazed-daydreamer
Copy link

我按照文档使用FLCountStepper组件

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

会出现以下错误

@Rannie Rannie added the bug Something isn't working label Jun 4, 2020
@Rannie
Copy link
Owner

Rannie commented Jun 4, 2020

@343629302 ok 我会跟进下

@lichenyu9024
Copy link

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

当前使用的是0.9.0版本。

@dazed-daydreamer
Copy link
Author

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

@zhangwei911
Copy link

zhangwei911 commented Jul 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants