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

Nullable flutter_touch_spin #1

Open
awhitford opened this issue May 7, 2020 · 0 comments
Open

Nullable flutter_touch_spin #1

awhitford opened this issue May 7, 2020 · 0 comments

Comments

@awhitford
Copy link
Contributor

It would be great to have support for optional values.

I would prefer to use flutter_touch_spin (via FormBuilderTouchSpin), but I have a use-case where the values are optional. They can start out blank/null, and if you increment them, you get 1, then 2, etc. In my case, a 0 value is logically the same as blank/null.

I don't want to see a 0, so the idea of specifying min:0 is not appealing to me (in this case). I need min:1, but allowEmpty: true and empty is numerically equivalent to 0 -- at least from the increment/decrement logic.

In the meantime, I am simply using FormBuilderTextField, but a guy can dream. 💤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant