Skip to content

[SfRadialGauge] cornerStyle not working for low values #99

Open
@stefanoromanello

Description

@stefanoromanello

I'm facing the following issue. When low values are assing to the gauge the left corner is flat instead of round.

SfRadialGauge(axes: <RadialAxis>[
                    RadialAxis(
                      minimum: 0,
                      maximum: 100,
                      showLabels: false,
                      showTicks: false,
                      annotations: <GaugeAnnotation>[
                        GaugeAnnotation(
                          positionFactor: 0.1,
                          angle: 90,
                          widget: Text(
                            (percentage * 100).toStringAsFixed(0) + ' / 100',
                            textAlign: TextAlign.center,
                            style: TextStyle(
                              fontSize: ScreenUtil().setSp(15),
                            ),
                          ),
                        ),
                      ],
                      pointers: <GaugePointer>[
                        RangePointer(
                          value: percentage * 100,
                          cornerStyle: CornerStyle.bothCurve,
                          animationDuration: 500,
                          width: 0.2,
                          color: MyTheme.primaryColor,
                          sizeUnit: GaugeSizeUnit.factor,
                        )
                      ],
                      axisLineStyle: AxisLineStyle(
                        thickness: 0.2,
                        cornerStyle: CornerStyle.bothCurve,
                        color: MyTheme.cardColor(context),
                        thicknessUnit: GaugeSizeUnit.factor,
                      ),
                    )
                  ]),

WIth the same code but different values I get:

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    gaugesGauges componentwaiting for customer responseCannot make further progress until the customer responds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions