GeekyAnts / GaugesFlutter

A gauge package for Flutter that displays progress and can be customized for appearance and behavior.
https://pub.dev/packages/geekyants_flutter_gauges
MIT License
69 stars 16 forks source link

inverseRulers on RadialGauge doesn't seem to be doing anything. #283

Closed Pipjapp closed 4 hours ago

Pipjapp commented 5 hours ago

Describe the bug There is a property (inverseRulers) on RadialGauge that seems like it would inverse the gauge (counter-clockwise). It doesn't seem to be changing anything.

To Reproduce RadialGauge( radiusFactor: 1, xCenterCoordinate: 0, track: RadialTrack( start: -50, end: 150, startAngle: 120, endAngle: 240, steps: 50, trackStyle: TrackStyle( inverseRulers: true, ), ), needlePointer: [ NeedlePointer( value: -30, needleHeight: 150, needleWidth: 20, tailRadius: 40, ), ], ),

Expected behavior A radial that is counter-clockwise. It's a very specific use case.

Screenshots image

Smartphone (please complete the following information):

Additional context If there is a different method I should be using, any insight would be helpful.

Pipjapp commented 4 hours ago

I got it to work. I started with flipping the start and end angles. I had to add the difference of the start and end (200) to start, end, and value for it to show the right numbers. image