Skip to content

Commit

Permalink
fix graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
jazminsofiaf committed Jan 21, 2022
1 parent 35a4553 commit d1ad907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/model/glove_measurement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension FingerValueTranslation on FingerValue {
}

class GloveMeasurement {
static const int measurementsNumber = 9;
static const int measurementsNumber = 6;
static const String pinkyLetter = "P";
static const String ringLetter = "R";
static const String middleLetter = "M";
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/file_content_chart_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ class _MeasurementsChartState extends State<MeasurementsChart> {
List<double> getFingerValues(List<double> m) {
switch (finger) {
case FingerValue.Thumb:
return m.sublist(0, 9);
return m.sublist(0, 6);
case FingerValue.Index:
return m.sublist(9, 18);
return m.sublist(6, 12);
case FingerValue.Middle:
return m.sublist(18, 27);
return m.sublist(12, 18);
case FingerValue.Ring:
return m.sublist(27, 36);
return m.sublist(18, 24);
case FingerValue.Pinky:
return m.sublist(36);
return m.sublist(24);
}
}

Expand Down

0 comments on commit d1ad907

Please sign in to comment.