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

Added a text mapper to customize number text #56

Merged
merged 2 commits into from Mar 5, 2020

Conversation

HugoSart
Copy link
Contributor

@HugoSart HugoSart commented Sep 6, 2019

This code introduces the TextMapper, that is a function defined by the user of this widget to map the text displayed by the widget. This way, the user can define it's own code to show a custom text instead of just a plain number.

This code introduces the TextMapper, that is a function defined by the user of this widget to map the text displayed by the widget. This way, the user can define it's own code to show a custom text instead of just a plain number.
@coveralls
Copy link

coveralls commented Sep 6, 2019

Pull Request Test Coverage Report for Build 47

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.4%) to 69.072%

Files with Coverage Reduction New Missed Lines %
lib/numberpicker.dart 2 69.07%
Totals Coverage Status
Change from base Build 42: -0.4%
Covered Lines: 201
Relevant Lines: 291

💛 - Coveralls

@HugoSart
Copy link
Contributor Author

HugoSart commented Sep 6, 2019

How do I fix the coverage problem?

@MarcinusX
Copy link
Owner

MarcinusX commented Sep 6, 2019

Hi!

Shouldn't the mapper map int value to string?

How do I fix the coverage problem?

Add tests :)

@HugoSart
Copy link
Contributor Author

HugoSart commented Sep 7, 2019

Hi!

Shouldn't the mapper map int value to string?

How do I fix the coverage problem?

Add tests :)

I let it as string to not mess with the number padding.

@HugoSart
Copy link
Contributor Author

HugoSart commented Sep 9, 2019

@MarcinusX Can you give some hints about how to write the proper tests to pass the coverage analysis?

@zerox1212
Copy link

Will you merge this? A single integer number picker is too limited, we need to be able to put strings into the picker.

@samsheldin
Copy link

please merge this this is a required feature

@AlecSPb
Copy link

AlecSPb commented Feb 25, 2020

Is there a solution to this request?

@samsheldin
Copy link

samsheldin commented Feb 27, 2020 via email

@AlecSPb
Copy link

AlecSPb commented Mar 1, 2020

That's what I did. All values change simultaneously, it should not be so.
anim

@MarcinusX
Copy link
Owner

MarcinusX commented Mar 1, 2020

Hey. I will merge and publish it in a few days. I'm super busy and can't put much time into this package, so all the code, tests and screenshots are very welcome!

@samsheldin
Copy link

samsheldin commented Mar 1, 2020 via email

@MarcinusX MarcinusX merged commit bc80954 into MarcinusX:master Mar 5, 2020
@MarcinusX
Copy link
Owner

Published as 1.2.0!
Thank you very much for your contribution!

@hateshkumar
Copy link

Can anyone please tell me how can i use textMapper?

@hateshkumar
Copy link

That's what I did. All values change simultaneously, it should not be so.
anim

Did you achieve this?

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.

None yet

7 participants