File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ const TESTSERVER_PASSWORD = 'flutteruser';
34
34
/// Keys used in the android manifest
35
35
const MANIFEST_KEY_CHECK_UPDATE = 'wger.check_min_app_version' ;
36
36
37
- /// Default weight unit is "kg"
38
- const WEIGHT_UNIT_KG_ID = 1 ;
39
-
40
37
/// Default impression for a workout session (neutral)
41
38
const DEFAULT_IMPRESSION = 2 ;
42
39
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class SlotEntry {
173
173
this .type = type ?? 'normal' ;
174
174
exerciseObj = exercise;
175
175
exerciseId = exercise.id! ;
176
- this .weightUnitId = weightUnitId ?? WEIGHT_UNIT_KG_ID ;
176
+ this .weightUnitId = weightUnitId ?? WEIGHT_UNIT_KG ;
177
177
this .weightRounding = weightRounding ?? 2.5 ;
178
178
179
179
this .repetitionUnitId = repetitionUnitId ?? REP_UNIT_REPETITIONS_ID ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class RoutinesProvider with ChangeNotifier {
105
105
106
106
/// Return the default weight unit (kg)
107
107
WeightUnit get defaultWeightUnit {
108
- return _weightUnits.firstWhere ((element) => element.id == WEIGHT_UNIT_KG_ID );
108
+ return _weightUnits.firstWhere ((element) => element.id == WEIGHT_UNIT_KG );
109
109
}
110
110
111
111
WeightUnit findWeightUnitById (int id) => _weightUnits.firstWhere ((element) => element.id == id);
You can’t perform that action at this time.
0 commit comments