Skip to content

Nullable flutter_touch_spin #1

@awhitford

Description

@awhitford

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. 💤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions