Skip to content

Commit

Permalink
Added knob outline for radial gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 16, 2024
1 parent 5496bd9 commit 34de06a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/widgets/nt_widgets/single_topic/radial_gauge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class RadialGaugeWidget extends NTWidget {
needleEndWidth: squareSide * 0.004,
needleHeight: squareSide * 0.25,
tailColor: Colors.grey,
tailRadius: squareSide * 0.055,
tailRadius: squareSide * 0.075,
value: value,
),
],
Expand All @@ -370,6 +370,15 @@ class RadialGaugeWidget extends NTWidget {
),
],
),
if (model.showPointer)
Container(
width: squareSide * 0.05,
height: squareSide * 0.05,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.grey[300]!,
),
),
Positioned(
bottom: squareSide * 0.3,
child: Text(
Expand Down

0 comments on commit 34de06a

Please sign in to comment.