GaugeOffset not laid out correctly
Afroz-Shaikh opened this issue · comments
BUG: GuageOffset
is laid out incorrectly when Diamond Height is Increased
Description: When Shape and Value are not Passed the Pointer Fails to render on the LinearGauge
Steps to Reproduce:
LinearGauge(
start: 0,
end: 100,
pointers: const [
Pointer(
shape: PointerShape.diamond,
width: 20,
height: 150,
value: 100,
pointerPosition: PointerPosition.left,
),
],
gaugeOrientation: GaugeOrientation.vertical,
rulers: const RulerStyle(
showLabel: true,
inverseRulers: false,
rulerPosition: RulerPosition.right,
),
),
Environment:
Version : 0.1
Proposed Solution
When the Vertical Gauge Orientation is being used, the calculation for LargestPointerWidth
should be updated to take into account the height of the Pointer.
Additonal Information
- This issue occurs when using the Vertical Gauge Orientation.
- The issue occurs consistently across different devices and browsers.
- I have also tested this issue with a PointerShape.rectangle and the bug persists.