upgraded dart and packages, analyze fixes, action type timer management
This commit is contained in:
@ -18,12 +18,14 @@ class ActivityAction {
|
||||
List<List<Map<String, dynamic>>> items() {
|
||||
List<List<Map<String, dynamic>>> sets = [];
|
||||
Reps reps = activityActionSet.reps;
|
||||
int totalActions = 1;
|
||||
|
||||
for (int i = 0; i < activityActionSet.total; i++) {
|
||||
List<Map<String, dynamic>> actions = [];
|
||||
int? weight = _setWeight(i);
|
||||
|
||||
actions.add({
|
||||
'actionID': totalActions++,
|
||||
'name': title,
|
||||
'type': reps.type,
|
||||
'amount': reps.amounts[i],
|
||||
@ -33,6 +35,7 @@ class ActivityAction {
|
||||
if (activityActionSet.type == 'alternating') {
|
||||
if (reps.rest != null) {
|
||||
actions.add({
|
||||
'actionID': totalActions++,
|
||||
'name': 'Rest',
|
||||
'type': 'seconds',
|
||||
'amount': reps.amounts[i],
|
||||
@ -40,6 +43,7 @@ class ActivityAction {
|
||||
}
|
||||
|
||||
actions.add({
|
||||
'actionID': totalActions++,
|
||||
'name': title,
|
||||
'type': reps.type,
|
||||
'amount': reps.amounts[i],
|
||||
@ -48,6 +52,7 @@ class ActivityAction {
|
||||
}
|
||||
|
||||
actions.add({
|
||||
'actionID': totalActions++,
|
||||
'name': 'Rest',
|
||||
'type': 'seconds',
|
||||
'amount': activityActionSet.rest ~/ 1000,
|
||||
|
Reference in New Issue
Block a user