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

A Pointer with border? #713

Open
sostenesgomes opened this issue Dec 19, 2022 · 1 comment
Open

A Pointer with border? #713

sostenesgomes opened this issue Dec 19, 2022 · 1 comment
Labels
gauges Gauges component waiting for customer Waiting for customer update

Comments

@sostenesgomes
Copy link

Hello, thanks for this awesome flutter graphics pack. I searched, but did not find a way to determine a pointer with a border, as shown below in the image. Is there a way to get to this design?

image

@LavanyaGowtham2021 LavanyaGowtham2021 added gauges Gauges component open Open and need to address labels Feb 14, 2024
@PreethikaSelvam
Copy link
Contributor

Hi @sostenesgomes,

We achieved your requirement by using the SfRadialGauge widget and three RangePointer widgets, along with the axisLineStyle property. We customized the appearance of the axis line by adjusting its color and thickness to match your design specifications.

In addition, we used three RangePointer widgets. Two of these pointers were customized to have a border, while the third acted as the primary radial gauge, allowing to select values interactively.

For interaction, we set the onValueChanged callback to the third RangePointer. This allowed us to dynamically update the gauge value, adjust the appearance of the border, and update the annotation text as users interacted with the gauge.

Furthermore, we utilized the GaugeAnnotation property to customize the annotation text.

Screenshot:

image

We have shared a sample and output for your reference. You can modify the sample based on your needs.

Please let us know if you need any further assistance.

Regards,
Preethika Selvam.

bd565215.zip

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Waiting for customer update and removed open Open and need to address labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gauges Gauges component waiting for customer Waiting for customer update
Projects
None yet
Development

No branches or pull requests

3 participants