GeekyAnts / GaugesFlutter

A gauge package for Flutter that displays progress and can be customized for appearance and behavior.

Home Page:https://pub.dev/packages/geekyants_flutter_gauges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GaugeOffset not laid out correctly

Afroz-Shaikh opened this issue · comments

BUG: GuageOffset is laid out incorrectly when Diamond Height is Increased

Screenshot 2023-03-15 at 5 32 38 PM

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.