Skip to content

Invalid radix-10 number (at character 1) when validating input with this formatter #16

@giorgio79

Description

@giorgio79

Just testing this out.

Formatting is great, yet when I go to validate and make sure the number is int I get the error message
Invalid radix-10 number (at character 1)

I am calling
if (int.parse(value) >to validate the value, so it looks like parse is not liking the value

Here is my validator

 validator: (value) { if (value.isEmpty) { return 'Please enter an amount.'; } if (int.parse(value) > 20) { return 'Please enter a lower amount. The max you can request is ' + 20) .toString(); } return null; }, 

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