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

Add new formatter to block too many decimals #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JacobT14
Copy link

Hey everyone!

I needed to create this formatter to only allow x amount of decimal places and y amount of digits before the decimal place, so I thought I would create a PR and add it to this package!

lib/numeric_formatter.dart Outdated Show resolved Hide resolved
@JacobT14
Copy link
Author

@hnvn I added for it to be dynamic, please let me know if I did that right!

@JacobT14
Copy link
Author

And I just added a bool to allow negative numbers or not.

@SimonIT
Copy link

SimonIT commented May 19, 2020

I would love to see this merged

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

Successfully merging this pull request may close these issues.

3 participants