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
67 stars 15 forks source link

Not able to remove extra space #277

Open SanketKumarr opened 2 months ago

SanketKumarr commented 2 months ago

Describe the bug The widget is taking an extra space from the bottom

To Reproduce RadialGauge( track: const RadialTrack( start: 300, end: 850, steps: 26, startAngle: 0, endAngle: 180, thickness: 20, trackStyle: TrackStyle( primaryRulersHeight: 3, primaryRulersWidth: 3, secondaryRulerPerInterval: 0, showLabel: false, ), ), valueBar: [ const RadialValueBar( value: 850, valueBarThickness: 20, gradient: LinearGradient( colors: [ CupertinoColors.destructiveRed, CupertinoColors.activeGreen, ], stops: [ 0.0, 0.3, ], ), ), ], shapePointer: [ RadialShapePointer( value: _ficoScore, color: CupertinoColors.systemBlue, width: 15, ), RadialShapePointer( value: _ficoScore, color: CupertinoColors.white, width: 7, ), ], ),

Expected behavior The widget should not take extra space, it should take only the required space

Screenshots image

Smartphone (please complete the following information):

Additional context In the attached screenshot, the widget is not forming a complete circle, it is a semi-circle gauge, still it is taking up space of a complete circular gauge.

Afroz-Shaikh commented 2 months ago

Hey @SanketKumarr,

Thank you for bringing this to our attention.

Currently, there isn't an option to hide the extra space in the widget. One workaround you can try is adjusting the position by setting the y-axis coordinate to 1 for now.

If you have any ideas or would like to contribute a solution, please feel free to raise a PR. We appreciate your help in improving our gauges library! Cheers and thanks again for your feedback.

Best regards.