Skip to content

Add new formatter to block too many decimals#5

Open
JacobT14 wants to merge 3 commits intohnvn:masterfrom
JacobT14:decimal
Open

Add new formatter to block too many decimals#5
JacobT14 wants to merge 3 commits intohnvn:masterfrom
JacobT14:decimal

Conversation

@JacobT14
Copy link
Copy Markdown

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!

Comment thread lib/numeric_formatter.dart Outdated
@JacobT14
Copy link
Copy Markdown
Author

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

@JacobT14
Copy link
Copy Markdown
Author

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

@SimonIT
Copy link
Copy Markdown

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