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

Custom Label Format #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mstainer14
Copy link

Added custom label formatter so that the user can customise how the label appears on the gauge.
#280 Linked to the first part of this issue.

Example usage:

 const LinearGauge(
  pointer: Pointer(
    labelFormatter: (double? value) => '$value%',
  ),
 ),

I have not updated the pubspec.yaml versioning in this PR in case you have some other changes you want to bundle in with the next release. If you wish for me to do that I can. Additionally, any questions about the PR or any futher changes you wish me to make, please let me know.

@mstainer14
Copy link
Author

@Afroz-Shaikh

@Afroz-Shaikh
Copy link
Collaborator

Hey @mstainer14, thanks for submitting the PR! I'll review it when I get a moment. It looks quite similar to what we've been implementing in an another branch, but I'll go through it thoroughly and get back to you with feedback.

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.

2 participants