Skip to content

Commit

Permalink
Added end radius to radial gauge pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 16, 2024
1 parent 9dca851 commit 5496bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/widgets/nt_widgets/multi-topic/gyro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class Gyro extends NTWidget {
needlePointer: [
NeedlePointer(
needleWidth: squareSide * 0.03,
needleEndWidth: squareSide * 0.005,
needleHeight: maxNeedleHeight * 0.52 -
(squareSide - 175.875) * 0.075,
tailColor: Colors.grey,
Expand Down
1 change: 1 addition & 0 deletions lib/widgets/nt_widgets/single_topic/radial_gauge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ class RadialGaugeWidget extends NTWidget {
if (model.showPointer)
NeedlePointer(
needleWidth: squareSide * 0.02,
needleEndWidth: squareSide * 0.004,
needleHeight: squareSide * 0.25,
tailColor: Colors.grey,
tailRadius: squareSide * 0.055,
Expand Down

0 comments on commit 5496bd9

Please sign in to comment.