gonuit / gauge_indicator

MIT License
31 stars 12 forks source link

Pointer's shadow offset is not used in the drawPointer method. #14

Open darkstarx opened 1 year ago

darkstarx commented 1 year ago

You should translate the path before drawing the pointer.shadow here:

    if (pointer.shadow != null) {
      canvas.drawPath(path, pointer.shadow!.toPaint());
    }

Please, use pointer.shadow!.offset for this purpose.