Skip to content

Custom Label Format#281

Open
mstainer14 wants to merge 1 commit into
GeekyAnts:mainfrom
mstainer14:label_formatter
Open

Custom Label Format#281
mstainer14 wants to merge 1 commit into
GeekyAnts:mainfrom
mstainer14:label_formatter

Conversation

@mstainer14

Copy link
Copy Markdown

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
Copy Markdown
Author

@Afroz-Shaikh

@Afroz-Shaikh

Copy link
Copy Markdown
Contributor

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