Offline gym log for Android. No account, no ads, no internet.
Dart androidbodybuildingdartexercisesf-droidfitnessfluttergymgym-apphealthprivacyself-hostedworkoutworkout-appworkout-tracker
fix: preserve logging conventions for paired and sided volume
Alexander Petrov9a2929e0b662
diff --git a/docs/images/volume-paired.png b/docs/images/volume-paired.pngnew file mode 100644index 0000000..ba5163aBinary files /dev/null and b/docs/images/volume-paired.png differdiff --git a/docs/images/volume-sides.png b/docs/images/volume-sides.pngnew file mode 100644index 0000000..24669adBinary files /dev/null and b/docs/images/volume-sides.png differdiff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arbindex 6449218..fbae7b8 100644--- a/lib/l10n/app_en.arb+++ b/lib/l10n/app_en.arb@@ -2588,7 +2588,7 @@"lightSessionNote": "Doesn't count for progression","lightSessionOff": "Turn off",- "eachSideRepsHint": "Log the left and right reps separately. Progression follows the weaker side.",+ "eachSideRepsHint": "Enter the load moved by one side and log left and right reps separately. New sets count both sides for volume, without an extra pair multiplier. Progression follows the weaker side.","repsLeftCol": "REPS L","repsRightCol": "REPS R","repsLeftTitle": "LEFT REPS",@@ -2777,8 +2777,16 @@"keepCountingHint": "It beeps at your time and keeps going until you stop it","holdOvertime": "Extra time",+ "weightPerDumbbellCol": "{unit}/DB",+ "@weightPerDumbbellCol": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerSideCol": "{unit}/SIDE",+ "@weightPerSideCol": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerDumbbellTitle": "Weight per dumbbell ({unit})",+ "@weightPerDumbbellTitle": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerSideTitle": "Load moved by one side ({unit})",+ "@weightPerSideTitle": {"placeholders": {"unit": {"type": "String"}}},"pairSetting": "Pair of dumbbells",- "pairSettingHint": "Log the weight of one. Volume counts both.",+ "pairSettingHint": "Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.","helpCommon": "Common questions","helpQuestions": "Questions",@@ -2797,7 +2805,7 @@"helpSidesA": "Open the exercise › {settings} › {sides}.","@helpSidesA": {"placeholders": {"settings": {"type": "String"}, "sides": {"type": "String"}}},"helpPairQ": "Dumbbells: do I log one or both?",- "helpPairA": "One. Turn on “{pair}” in the exercise’s settings and the volume counts both.",+ "helpPairA": "One. Turn on “{pair}” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.","@helpPairA": {"placeholders": {"pair": {"type": "String"}}},"helpKeepQ": "Can a timed set keep going past the time?","helpKeepA": "Yes: turn on “{keep}” in the exercise’s settings. It beeps at your time and keeps counting until you stop it.",diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arbindex 135136a..6dcf5e8 100644--- a/lib/l10n/app_es.arb+++ b/lib/l10n/app_es.arb@@ -2250,7 +2250,7 @@"lightSessionNote": "No cuenta para la progresión","lightSessionOff": "Quitar",- "eachSideRepsHint": "Apunta las reps de la izquierda y la derecha por separado. La progresión sigue al lado más flojo.",+ "eachSideRepsHint": "Introduce la carga movida por un lado y registra las repeticiones de izquierda y derecha por separado. Las series nuevas suman ambos lados sin duplicar el par. La progresión sigue al lado más débil.","repsLeftCol": "REPS I","repsRightCol": "REPS D","repsLeftTitle": "REPS IZQUIERDA",@@ -2436,8 +2436,16 @@"keepCountingHint": "Suena al llegar a tu tiempo y sigue hasta que lo pares","holdOvertime": "Tiempo extra",+ "weightPerDumbbellCol": "{unit}/MANC.",+ "@weightPerDumbbellCol": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerSideCol": "{unit}/LADO",+ "@weightPerSideCol": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerDumbbellTitle": "Peso por mancuerna ({unit})",+ "@weightPerDumbbellTitle": {"placeholders": {"unit": {"type": "String"}}},+ "weightPerSideTitle": "Carga movida por un lado ({unit})",+ "@weightPerSideTitle": {"placeholders": {"unit": {"type": "String"}}},"pairSetting": "Par de mancuernas",- "pairSettingHint": "Apunta el peso de una. El volumen cuenta las dos.",+ "pairSettingHint": "Introduce el peso de una mancuerna. Las series nuevas cuentan las dos. Con repeticiones separadas, cada lado se cuenta una sola vez. Los entrenos anteriores no cambian.","helpCommon": "Preguntas frecuentes","helpQuestions": "Preguntas",@@ -2453,7 +2461,7 @@"helpSidesQ": "¿Cómo apunto izquierda y derecha por separado?","helpSidesA": "Abre el ejercicio › {settings} › {sides}.","helpPairQ": "Mancuernas: ¿apunto el peso de una o de las dos?",- "helpPairA": "El de una. Activa «{pair}» en los ajustes del ejercicio y el volumen cuenta las dos.",+ "helpPairA": "Una. Activa «{pair}» en los ajustes del ejercicio para contar ambas en las series nuevas. Con repeticiones separadas, el volumen suma ambos lados sin volver a duplicarlos. Los entrenos anteriores no cambian.","helpKeepQ": "¿Puede una serie por tiempo seguir después de llegar?","helpKeepA": "Sí: activa «{keep}» en los ajustes del ejercicio. Suena al llegar a tu tiempo y sigue hasta que lo pares.","helpDayOffQ": "¿Cómo marco un día de descanso, enfermo o de viaje?",diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dartindex d07975c..54a397f 100644--- a/lib/l10n/app_localizations.dart+++ b/lib/l10n/app_localizations.dart@@ -13157,7 +13157,7 @@ abstract class AppLocalizations {/// No description provided for @eachSideRepsHint.////// In en, this message translates to:- /// **'Log the left and right reps separately. Progression follows the weaker side.'**+ /// **'Enter the load moved by one side and log left and right reps separately. New sets count both sides for volume, without an extra pair multiplier. Progression follows the weaker side.'**String get eachSideRepsHint;/// No description provided for @repsLeftCol.@@ -14066,6 +14066,30 @@ abstract class AppLocalizations {/// **'Extra time'**String get holdOvertime;+ /// No description provided for @weightPerDumbbellCol.+ ///+ /// In en, this message translates to:+ /// **'{unit}/DB'**+ String weightPerDumbbellCol(String unit);++ /// No description provided for @weightPerSideCol.+ ///+ /// In en, this message translates to:+ /// **'{unit}/SIDE'**+ String weightPerSideCol(String unit);++ /// No description provided for @weightPerDumbbellTitle.+ ///+ /// In en, this message translates to:+ /// **'Weight per dumbbell ({unit})'**+ String weightPerDumbbellTitle(String unit);++ /// No description provided for @weightPerSideTitle.+ ///+ /// In en, this message translates to:+ /// **'Load moved by one side ({unit})'**+ String weightPerSideTitle(String unit);+/// No description provided for @pairSetting.////// In en, this message translates to:@@ -14075,7 +14099,7 @@ abstract class AppLocalizations {/// No description provided for @pairSettingHint.////// In en, this message translates to:- /// **'Log the weight of one. Volume counts both.'**+ /// **'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.'**String get pairSettingHint;/// No description provided for @helpCommon.@@ -14165,7 +14189,7 @@ abstract class AppLocalizations {/// No description provided for @helpPairA.////// In en, this message translates to:- /// **'One. Turn on “{pair}” in the exercise’s settings and the volume counts both.'**+ /// **'One. Turn on “{pair}” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.'**String helpPairA(String pair);/// No description provided for @helpKeepQ.diff --git a/lib/l10n/app_localizations_ar.dart b/lib/l10n/app_localizations_ar.dartindex 395745b..f93a84a 100644--- a/lib/l10n/app_localizations_ar.dart+++ b/lib/l10n/app_localizations_ar.dart@@ -8116,11 +8116,32 @@ class AppLocalizationsAr extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8172,7 +8193,7 @@ class AppLocalizationsAr extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_bn.dart b/lib/l10n/app_localizations_bn.dartindex 0c5b36a..670aec5 100644--- a/lib/l10n/app_localizations_bn.dart+++ b/lib/l10n/app_localizations_bn.dart@@ -8016,11 +8016,32 @@ class AppLocalizationsBn extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8072,7 +8093,7 @@ class AppLocalizationsBn extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dartindex c254493..0edd84f 100644--- a/lib/l10n/app_localizations_de.dart+++ b/lib/l10n/app_localizations_de.dart@@ -8071,11 +8071,32 @@ class AppLocalizationsDe extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8127,7 +8148,7 @@ class AppLocalizationsDe extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dartindex 47c0842..732ebff 100644--- a/lib/l10n/app_localizations_en.dart+++ b/lib/l10n/app_localizations_en.dart@@ -7497,7 +7497,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get eachSideRepsHint =>- 'Log the left and right reps separately. Progression follows the weaker side.';+ 'Enter the load moved by one side and log left and right reps separately. New sets count both sides for volume, without an extra pair multiplier. Progression follows the weaker side.';@overrideString get repsLeftCol => 'REPS L';@@ -7996,11 +7996,32 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8052,7 +8073,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dartindex 98867e6..d939ff1 100644--- a/lib/l10n/app_localizations_es.dart+++ b/lib/l10n/app_localizations_es.dart@@ -7541,7 +7541,7 @@ class AppLocalizationsEs extends AppLocalizations {@overrideString get eachSideRepsHint =>- 'Apunta las reps de la izquierda y la derecha por separado. La progresión sigue al lado más flojo.';+ 'Introduce la carga movida por un lado y registra las repeticiones de izquierda y derecha por separado. Las series nuevas suman ambos lados sin duplicar el par. La progresión sigue al lado más débil.';@overrideString get repsLeftCol => 'REPS I';@@ -8042,11 +8042,32 @@ class AppLocalizationsEs extends AppLocalizations {@overrideString get holdOvertime => 'Tiempo extra';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/MANC.';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/LADO';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Peso por mancuerna ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Carga movida por un lado ($unit)';+ }+@overrideString get pairSetting => 'Par de mancuernas';@override- String get pairSettingHint => 'Apunta el peso de una. El volumen cuenta las dos.';+ String get pairSettingHint =>+ 'Introduce el peso de una mancuerna. Las series nuevas cuentan las dos. Con repeticiones separadas, cada lado se cuenta una sola vez. Los entrenos anteriores no cambian.';@overrideString get helpCommon => 'Preguntas frecuentes';@@ -8099,7 +8120,7 @@ class AppLocalizationsEs extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'El de una. Activa «$pair» en los ajustes del ejercicio y el volumen cuenta las dos.';+ return 'Una. Activa «$pair» en los ajustes del ejercicio para contar ambas en las series nuevas. Con repeticiones separadas, el volumen suma ambos lados sin volver a duplicarlos. Los entrenos anteriores no cambian.';}@overridediff --git a/lib/l10n/app_localizations_fa.dart b/lib/l10n/app_localizations_fa.dartindex 2a417c1..d8d421a 100644--- a/lib/l10n/app_localizations_fa.dart+++ b/lib/l10n/app_localizations_fa.dart@@ -7922,11 +7922,32 @@ class AppLocalizationsFa extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7978,7 +7999,7 @@ class AppLocalizationsFa extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dartindex bf9269e..08cc0f3 100644--- a/lib/l10n/app_localizations_fr.dart+++ b/lib/l10n/app_localizations_fr.dart@@ -8074,11 +8074,32 @@ class AppLocalizationsFr extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8130,7 +8151,7 @@ class AppLocalizationsFr extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_hi.dart b/lib/l10n/app_localizations_hi.dartindex 89eef46..45a99a1 100644--- a/lib/l10n/app_localizations_hi.dart+++ b/lib/l10n/app_localizations_hi.dart@@ -7989,11 +7989,32 @@ class AppLocalizationsHi extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8045,7 +8066,7 @@ class AppLocalizationsHi extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_id.dart b/lib/l10n/app_localizations_id.dartindex 5f47047..499d881 100644--- a/lib/l10n/app_localizations_id.dart+++ b/lib/l10n/app_localizations_id.dart@@ -7870,11 +7870,32 @@ class AppLocalizationsId extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7926,7 +7947,7 @@ class AppLocalizationsId extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dartindex 4c28529..1a94038 100644--- a/lib/l10n/app_localizations_it.dart+++ b/lib/l10n/app_localizations_it.dart@@ -8046,11 +8046,32 @@ class AppLocalizationsIt extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8102,7 +8123,7 @@ class AppLocalizationsIt extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dartindex 289212c..0836eb0 100644--- a/lib/l10n/app_localizations_ja.dart+++ b/lib/l10n/app_localizations_ja.dart@@ -7759,11 +7759,32 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7815,7 +7836,7 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dartindex 8df9683..7527b1d 100644--- a/lib/l10n/app_localizations_ko.dart+++ b/lib/l10n/app_localizations_ko.dart@@ -7771,11 +7771,32 @@ class AppLocalizationsKo extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7827,7 +7848,7 @@ class AppLocalizationsKo extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dartindex 8633843..ebbfb32 100644--- a/lib/l10n/app_localizations_nl.dart+++ b/lib/l10n/app_localizations_nl.dart@@ -8052,11 +8052,32 @@ class AppLocalizationsNl extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8108,7 +8129,7 @@ class AppLocalizationsNl extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dartindex b775c9e..e6a51a7 100644--- a/lib/l10n/app_localizations_pl.dart+++ b/lib/l10n/app_localizations_pl.dart@@ -8220,11 +8220,32 @@ class AppLocalizationsPl extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8276,7 +8297,7 @@ class AppLocalizationsPl extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dartindex e13453e..c9811d9 100644--- a/lib/l10n/app_localizations_pt.dart+++ b/lib/l10n/app_localizations_pt.dart@@ -8059,11 +8059,32 @@ class AppLocalizationsPt extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8115,7 +8136,7 @@ class AppLocalizationsPt extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dartindex 4a68a5a..e5ade6d 100644--- a/lib/l10n/app_localizations_ru.dart+++ b/lib/l10n/app_localizations_ru.dart@@ -8328,11 +8328,32 @@ class AppLocalizationsRu extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8384,7 +8405,7 @@ class AppLocalizationsRu extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_tr.dart b/lib/l10n/app_localizations_tr.dartindex f13868f..e7e586f 100644--- a/lib/l10n/app_localizations_tr.dart+++ b/lib/l10n/app_localizations_tr.dart@@ -8021,11 +8021,32 @@ class AppLocalizationsTr extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8077,7 +8098,7 @@ class AppLocalizationsTr extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dartindex 341b2a4..f13f30a 100644--- a/lib/l10n/app_localizations_uk.dart+++ b/lib/l10n/app_localizations_uk.dart@@ -8216,11 +8216,32 @@ class AppLocalizationsUk extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8272,7 +8293,7 @@ class AppLocalizationsUk extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_ur.dart b/lib/l10n/app_localizations_ur.dartindex 6f896df..4f278f6 100644--- a/lib/l10n/app_localizations_ur.dart+++ b/lib/l10n/app_localizations_ur.dart@@ -7949,11 +7949,32 @@ class AppLocalizationsUr extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -8005,7 +8026,7 @@ class AppLocalizationsUr extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_vi.dart b/lib/l10n/app_localizations_vi.dartindex 98c5f25..0d1d29c 100644--- a/lib/l10n/app_localizations_vi.dart+++ b/lib/l10n/app_localizations_vi.dart@@ -7878,11 +7878,32 @@ class AppLocalizationsVi extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7934,7 +7955,7 @@ class AppLocalizationsVi extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dartindex b947e09..a380230 100644--- a/lib/l10n/app_localizations_zh.dart+++ b/lib/l10n/app_localizations_zh.dart@@ -7692,11 +7692,32 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get holdOvertime => 'Extra time';+ @override+ String weightPerDumbbellCol(String unit) {+ return '$unit/DB';+ }++ @override+ String weightPerSideCol(String unit) {+ return '$unit/SIDE';+ }++ @override+ String weightPerDumbbellTitle(String unit) {+ return 'Weight per dumbbell ($unit)';+ }++ @override+ String weightPerSideTitle(String unit) {+ return 'Load moved by one side ($unit)';+ }+@overrideString get pairSetting => 'Pair of dumbbells';@override- String get pairSettingHint => 'Log the weight of one. Volume counts both.';+ String get pairSettingHint =>+ 'Enter the weight of one dumbbell. New sets count both dumbbells. With separate left/right reps, each side is counted once. Existing workouts stay unchanged.';@overrideString get helpCommon => 'Common questions';@@ -7748,7 +7769,7 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString helpPairA(String pair) {- return 'One. Turn on “$pair” in the exercise’s settings and the volume counts both.';+ return 'One. Turn on “$pair” in the exercise’s settings for new sets to count both. With separate left/right reps, volume adds both sides without doubling again. Existing workouts stay unchanged.';}@overridediff --git a/lib/models/live_session.dart b/lib/models/live_session.dartindex 5d759cb..8178610 100644--- a/lib/models/live_session.dart+++ b/lib/models/live_session.dart@@ -2,7 +2,10 @@ import 'workout.dart';class SessionSet {SessionSet(this.reps, this.weight, this.done,- {this.kind = SetKind.normal, this.rpe, this.sec, this.km, this.rest, this.note = '', this.repsR, this.goal});+ {this.kind = SetKind.normal, this.rpe, this.sec, this.km, this.rest, this.note = '', this.repsR,+ this.goal, this.volumeMultiplier, this.preserveLegacyVolume = false});+ int? volumeMultiplier;+ final bool preserveLegacyVolume;int reps;int? repsR;String? goal;@@ -26,11 +29,19 @@ class SessionSet {LoggedSet get logged => LoggedSet(weakReps, weight,kind: kind, rpe: rpe, sec: sec, km: km, note: note.trim(), left: repsR == null ? null : reps, right: repsR);- SessionSet copy({bool done = false}) =>- SessionSet(reps, weight, done, kind: kind, rpe: rpe, sec: sec, km: km, repsR: repsR, goal: goal);+ LoggedSet loggedForVolume(bool paired) => LoggedSet(weakReps, weight,+ kind: kind, rpe: rpe, sec: sec, km: km, note: note.trim(),+ left: repsR == null ? null : reps, right: repsR,+ volumeMultiplier: preserveLegacyVolume ? null : volumeMultiplier ?? (paired ? 2 : 1));++ SessionSet copy({bool done = false}) => SessionSet(reps, weight, done,+ kind: kind, rpe: rpe, sec: sec, km: km, repsR: repsR, goal: goal,+ volumeMultiplier: volumeMultiplier, preserveLegacyVolume: preserveLegacyVolume);Map<String, dynamic> toJson() => {'r': reps,+ if (volumeMultiplier != null) 'vm': volumeMultiplier,+ if (preserveLegacyVolume) 'lv': true,if (repsR != null) 'rr': repsR,if (goal != null) 'g': goal,'w': weight,@@ -55,6 +66,8 @@ class SessionSet {note: j['n'] as String? ?? '',repsR: (j['rr'] as num?)?.toInt(),goal: j['g'] as String?,+ volumeMultiplier: (j['vm'] as num?)?.toInt(),+ preserveLegacyVolume: j['lv'] == true,)..half = j['h'] as bool? ?? false;}diff --git a/lib/models/workout.dart b/lib/models/workout.dartindex 44aa7e2..1273278 100644--- a/lib/models/workout.dart+++ b/lib/models/workout.dart@@ -16,11 +16,13 @@ double? rpePercent(int reps, double? rpe) {return i < _rpeTable.length ? _rpeTable[i] : null;}-final Set<String> pairedDumbbells = {};+final Set<String> legacyPairedDumbbells = {};class LoggedSet {LoggedSet(this.reps, this.weight,- {this.kind = SetKind.normal, this.rpe, this.sec, this.km, this.note = '', this.left, this.right});+ {this.kind = SetKind.normal, this.rpe, this.sec, this.km, this.note = '', this.left, this.right,+ this.volumeMultiplier});+ final int? volumeMultiplier;final int reps;final int? left;final int? right;@@ -34,7 +36,11 @@ class LoggedSet {bool get counts => kind != SetKind.warmup;bool get sided => left != null && right != null;double? get rir => rpe == null ? null : 10 - rpe!;- double get volume => counts ? reps * weight : 0;+ double get volume {+ if (!counts) return 0;+ if (volumeMultiplier == null) return reps * weight;+ return weight * (sided ? left! + right! : reps * volumeMultiplier!);+ }double get oneRm {if (!counts || reps <= 0) return 0;@@ -45,6 +51,7 @@ class LoggedSet {Map<String, dynamic> toJson() => {'r': reps,'w': weight,+ if (volumeMultiplier != null) 'vm': volumeMultiplier,if (sided) 'rl': left,if (sided) 'rr': right,if (kind != SetKind.normal) 'k': kind.index,@@ -63,6 +70,7 @@ class LoggedSet {note: j['n'] as String? ?? '',left: (j['rl'] as num?)?.toInt(),right: (j['rr'] as num?)?.toInt(),+ volumeMultiplier: (j['vm'] as num?)?.toInt(),);}@@ -93,7 +101,10 @@ class LoggedExercise {List<LoggedSet> get workingSets => sets.where((s) => s.counts).toList();- double get volume => workingSets.fold(0.0, (s, x) => s + x.volume) * (pairedDumbbells.contains(id) ? 2 : 1);+ double volumeOf(LoggedSet set) =>+ set.volume * (set.volumeMultiplier == null && legacyPairedDumbbells.contains(id) ? 2 : 1);++ double get volume => workingSets.fold(0.0, (s, x) => s + volumeOf(x));double get topWeight {final w = workingSets;return w.isEmpty ? 0 : w.map((s) => s.weight).reduce((a, b) => a > b ? a : b);diff --git a/lib/screens/session_screen.dart b/lib/screens/session_screen.dartindex 98ad7f0..effe65f 100644--- a/lib/screens/session_screen.dart+++ b/lib/screens/session_screen.dart@@ -1178,7 +1178,8 @@ class SessionScreen extends StatelessWidget {Expanded(flex: _prevFlex, child: label(t.previousCol)),],for (final h in _headers(mode, repsOnly, sided, exId == null ? fit.units : fit.unitsFor(exId),- exId == null ? fit.distanceUnit : fit.distanceUnitFor(exId))) ...[+ exId == null ? fit.distanceUnit : fit.distanceUnitFor(exId),+ paired: exId != null && fit.isPaired(exId))) ...[SizedBox(width: gap),Expanded(flex: _cellFlex, child: label(h)),],@@ -1456,7 +1457,11 @@ class SessionScreen extends StatelessWidget {26,onEdit: (context) => _ruler(context,- title: t.weightTitle(fit.unitsFor(exId).toUpperCase()),+ title: fit.isSidedReps(exId)+ ? t.weightPerSideTitle(fit.unitsFor(exId).toUpperCase())+ : fit.isPaired(exId)+ ? t.weightPerDumbbellTitle(fit.unitsFor(exId).toUpperCase())+ : t.weightTitle(fit.unitsFor(exId).toUpperCase()),value: fit.toShownFor(exId, st.weight),max: fit.isLbFor(exId) ? 1540 : 700,step: fit.rulerStepFor(exId),@@ -1517,12 +1522,18 @@ class SessionScreen extends StatelessWidget {};}- List<String> _headers(String mode, bool repsOnly, bool sided, String unit, String dist) => switch (mode) {+ List<String> _headers(String mode, bool repsOnly, bool sided, String unit, String dist,+ {bool paired = false}) => switch (mode) {'cardio' => [t.distanceCol(dist.toUpperCase()), t.timeCol],'time' => [sided ? t.timePerSideCol : t.timeCol, if (!repsOnly) t.weightCol(unit.toUpperCase())],_ => [if (sided) ...[t.repsLeftCol, t.repsRightCol] else t.repsCol,- if (!repsOnly) t.weightCol(unit.toUpperCase()),+ if (!repsOnly)+ sided+ ? t.weightPerSideCol(unit.toUpperCase())+ : paired+ ? t.weightPerDumbbellCol(unit.toUpperCase())+ : t.weightCol(unit.toUpperCase()),],};diff --git a/lib/state/fit_core.dart b/lib/state/fit_core.dartindex 7eee556..94ded78 100644--- a/lib/state/fit_core.dart+++ b/lib/state/fit_core.dart@@ -89,7 +89,7 @@ abstract class FitCore extends ChangeNotifier {final Set<String> eachSideOff = {};final Set<String> keepCounting = {};- final Set<String> pairOn = pairedDumbbells;+ final Set<String> pairOn = {};final Set<String> assistedOn = {};final Set<String> assistedOff = {};diff --git a/lib/state/fit_state.dart b/lib/state/fit_state.dartindex 022d037..2fb4938 100644--- a/lib/state/fit_state.dart+++ b/lib/state/fit_state.dart@@ -467,6 +467,9 @@ class FitState extends FitCorepairOn..clear()..addAll(((data['pairOn'] as List?) ?? const []).cast<String>());+ legacyPairedDumbbells+ ..clear()+ ..addAll(((data['legacyPairOn'] as List?) ?? (data['pairOn'] as List?) ?? const []).cast<String>());assistedOn..clear()..addAll(((data['assisted'] as List?) ?? const []).cast<String>());@@ -669,6 +672,7 @@ class FitState extends FitCore'eachSideOff': eachSideOff.toList(),if (keepCounting.isNotEmpty) 'keepCounting': keepCounting.toList(),if (pairOn.isNotEmpty) 'pairOn': pairOn.toList(),+ 'legacyPairOn': legacyPairedDumbbells.toList(),if (assistedOn.isNotEmpty) 'assisted': assistedOn.toList(),if (assistedOff.isNotEmpty) 'assistedOff': assistedOff.toList(),'sessions': _stored('sessions', sessions, (s) => s.toJson(), parts: _sessionParts),@@ -774,6 +778,7 @@ class FitState extends FitCoreeachSideOff.clear();keepCounting.clear();pairOn.clear();+ legacyPairedDumbbells.clear();assistedOn.clear();assistedOff.clear();exerciseRest.clear();diff --git a/lib/state/stats_state.dart b/lib/state/stats_state.dartindex 9b2e426..8f0943d 100644--- a/lib/state/stats_state.dart+++ b/lib/state/stats_state.dart@@ -477,6 +477,7 @@ mixin StatsState on FitCore, ToolsState, LibraryState, SettingsState, TimelineSte.sets[i] = LoggedSet(reps ?? old.reps,weight ?? old.weight,+ volumeMultiplier: old.volumeMultiplier,kind: old.kind,rpe: old.rpe,sec: sec ?? old.sec,@@ -607,7 +608,8 @@ mixin StatsState on FitCore, ToolsState, LibraryState, SettingsState, TimelineStvoid addLoggedSet(LoggedExercise e) {final last = e.sets.isNotEmpty ? e.sets.last : LoggedSet(10, isRepsOnly(e.id) ? 0 : 20);- e.sets.add(LoggedSet(last.reps, last.weight, sec: last.sec, km: last.km, left: last.left, right: last.right));+ e.sets.add(LoggedSet(last.reps, last.weight, sec: last.sec, km: last.km, left: last.left, right: last.right,+ volumeMultiplier: last.volumeMultiplier));persistNow();_refreshWidgets();notifyListeners();diff --git a/lib/state/workout_state.dart b/lib/state/workout_state.dartindex 518e1e4..cadaff2 100644--- a/lib/state/workout_state.dart+++ b/lib/state/workout_state.dart@@ -898,9 +898,9 @@ mixin WorkoutState on FitCore, SettingsState, LibraryState, PlacesState, StatsStdouble get sessionVolumeKg {var kg = 0.0;for (final e in session?.exercises ?? const <SessionExercise>[]) {- final times = isPaired(e.id) ? 2 : 1;+ final logged = LoggedExercise(e.id, e.name, e.primary, const []);for (final st in e.sets) {- if (st.done && st.counts) kg += st.weakReps * st.weight * times;+ if (st.done && st.counts) kg += logged.volumeOf(st.loggedForVolume(isPaired(e.id)));}}return kg;@@ -934,14 +934,15 @@ mixin WorkoutState on FitCore, SettingsState, LibraryState, PlacesState, StatsStif (done.isEmpty) continue;final before = [for (final p in last.exercises)- if (p.id == e.id) ...p.workingSets,+ if (p.id == e.id) ...p.workingSets.map(p.volumeOf),];if (before.isEmpty) continue;var now = 0.0;var then = 0.0;for (var i = 0; i < done.length; i++) {- now += done[i].weakReps * done[i].weight;- if (i < before.length) then += before[i].volume;+ now += LoggedExercise(e.id, e.name, e.primary, const [])+ .volumeOf(done[i].loggedForVolume(isPaired(e.id)));+ if (i < before.length) then += before[i];}if (now <= 0 && then <= 0) continue;rows.add((id: e.id, name: e.name, now: now, then: then));@@ -1911,7 +1912,7 @@ mixin WorkoutState on FitCore, SettingsState, LibraryState, PlacesState, StatsStif (st.counts) working.add(st);}}- s.summaryVolume = working.fold<double>(0, (sum, st) => sum + st.weakReps * st.weight).round();+ s.summaryVolume = sessionVolumeKg.round();s.summarySets = working.length;s.summaryDuration = s.manual ? _elapsedBefore : sessionElapsed;s.complete = true;@@ -1921,7 +1922,11 @@ mixin WorkoutState on FitCore, SettingsState, LibraryState, PlacesState, StatsStif (done.isNotEmpty) {final logged = <LoggedExercise>[];for (final e in s.exercises) {- final doneSets = e.sets.where((st) => st.done).map((st) => st.logged).toList();+ final doneSets = e.sets.where((st) => st.done).map((st) {+ final logged = st.loggedForVolume(isPaired(e.id));+ st.volumeMultiplier = logged.volumeMultiplier;+ return logged;+ }).toList();if (doneSets.isNotEmpty) {logged.add(LoggedExercise(e.id, e.name, e.primary, doneSets, incline: lastIncline(e.id)));}@@ -2385,7 +2390,10 @@ mixin WorkoutState on FitCore, SettingsState, LibraryState, PlacesState, StatsSte.primary,e.sets.map((x) => SessionSet(x.sided ? x.left! : x.reps, x.weight, true,- kind: x.kind, rpe: x.rpe, sec: x.sec, km: x.km, note: x.note, repsR: x.right))+ kind: x.kind, rpe: x.rpe, sec: x.sec, km: x.km, note: x.note, repsR: x.right,+ volumeMultiplier: x.volumeMultiplier,+ preserveLegacyVolume: x.volumeMultiplier == null,+ )).toList())).toList();_restTimer?.cancel();diff --git a/test/pending_translation_keys.txt b/test/pending_translation_keys.txtindex 5f7f160..8d363ee 100644--- a/test/pending_translation_keys.txt+++ b/test/pending_translation_keys.txt@@ -18,3 +18,7 @@ routineNotesAddedreportChooseCsvreportWeighInsreportSessionDetails+weightPerDumbbellCol+weightPerSideCol+weightPerDumbbellTitle+weightPerSideTitlediff --git a/test/sided_volume_test.dart b/test/sided_volume_test.dartnew file mode 100644index 0000000..66da4fc--- /dev/null+++ b/test/sided_volume_test.dart@@ -0,0 +1,135 @@+import 'dart:convert';+import 'package:flutter_test/flutter_test.dart';+import 'package:gymmane/models/live_session.dart';+import 'package:gymmane/models/workout.dart';+import 'package:gymmane/services/local_store.dart';+import 'package:gymmane/state/fit_state.dart';+import 'package:shared_preferences/shared_preferences.dart';++void main() {+ TestWidgetsFlutterBinding.ensureInitialized();++ setUp(() async {+ SharedPreferences.setMockInitialValues({});+ await Store.instance.init();+ fit.resetAllData();+ });++ tearDown(() => fit.saveAndExit());++ void start({bool paired = false, int? right}) {+ final id = fit.matchExerciseByName('Dumbbell Curl')!.id;+ if (paired) fit.togglePaired(id);+ fit.session = WorkoutSession()+ ..exercises = [+ SessionExercise(id, 'Curl', 'biceps', [SessionSet(10, 10, true, repsR: right)]),+ ];+ }++ for (final paired in [false, true]) {+ for (final right in [0, 8, 10]) {+ test('separate reps count once: paired=$paired, right=$right', () {+ start(paired: paired, right: right);+ final expected = 10.0 * (10 + right);+ expect(fit.sessionVolumeKg, expected);+ fit.finishSession();+ final session = fit.filedSession!;+ final set = session.exercises.single.sets.single;+ expect(set.reps, right);+ expect(set.weight, 10);+ expect(set.oneRm, LoggedSet(right, 10).oneRm);+ expect(session.volume, expected);+ expect(fit.session!.summaryVolume, expected);+ expect(LoggedSession.fromJson(session.toJson()).volume, expected);+ fit.togglePaired(session.exercises.single.id);+ expect(session.volume, expected);+ });+ }+ }++ test('paired reps, warmups and single load share the same saved calculation', () {+ start(paired: true);+ final e = fit.session!.exercises.single;+ e.sets.add(SessionSet(20, 100, true, kind: SetKind.warmup));+ expect(fit.sessionVolumeKg, 200);+ fit.finishSession();+ expect(fit.filedSession!.volume, 200);+ fit.togglePaired(e.id);+ expect(fit.filedSession!.volume, 200);+ fit.saveAndExit();+ start();+ expect(fit.sessionVolumeKg, 100);+ fit.finishSession();+ expect(fit.filedSession!.volume, 100);+ });++ for (final paired in [false, true]) {+ test('legacy records and pairing survive settings, backup and resume: $paired', () {+ final id = fit.matchExerciseByName('Dumbbell Curl')!.id;+ final old = LoggedSession(DateTime(2026, 10, 1), 600, [+ LoggedExercise(id, 'Curl', 'biceps', [LoggedSet(8, 10, left: 10, right: 8)]),+ ]).toJson();+ final backup = fit.toJson()..remove('legacyPairOn');+ backup['pairOn'] = paired ? [id] : <String>[];+ backup['sessions'] = [old];+ expect(fit.importJson(jsonEncode(backup)), isTrue);+ final expected = paired ? 160.0 : 80.0;+ expect(fit.totalVolumeKg, expected);+ fit.togglePaired(id);+ expect(fit.totalVolumeKg, expected);+ expect(fit.sessions.single.toJson(), old);+ final exported = fit.exportJson();+ fit.resetAllData();+ expect(fit.importJson(exported), isTrue);+ expect(fit.totalVolumeKg, expected);+ expect(fit.sessions.single.toJson(), old);+ fit.resumeLoggedSession(fit.sessions.single);+ fit.session = WorkoutSession.fromJson(fit.session!.toJson());+ expect(fit.sessionVolumeKg, expected);+ fit.finishSession();+ expect(fit.filedSession!.volume, expected);+ expect(fit.filedSession!.exercises.single.toJson(), (old['ex'] as List).single);+ });+ }++ test('history edits and resume retain the saved new convention', () {+ start(paired: true, right: 8);+ fit.finishSession();+ final logged = fit.filedSession!;+ final e = logged.exercises.single;+ fit.setLoggedReps(e, 0, 9);+ expect(e.volume, 180);+ fit.setLoggedWeight(e, 0, 12);+ expect(e.volume, 216);+ fit.togglePaired(e.id);+ fit.saveAndExit();+ fit.resumeLoggedSession(logged);+ expect(fit.sessionVolumeKg, 216);+ fit.finishSession();+ expect(fit.filedSession!.volume, 216);+ final backup = fit.exportJson();+ fit.resetAllData();+ expect(fit.importJson(backup), isTrue);+ expect(fit.totalVolumeKg, 216);+ });++ test('continuing a filed workout preserves its saved pairing', () {+ start(paired: true);+ fit.finishSession();+ final id = fit.filedSession!.exercises.single.id;+ fit.togglePaired(id);+ fit.continueSession();+ expect(fit.sessionVolumeKg, 200);+ fit.finishSession();+ expect(fit.filedSession!.volume, 200);+ });++ test('comparison uses the same total as the session and history', () {+ start(paired: true, right: 8);+ fit.finishSession();+ fit.saveAndExit();+ start(right: 10);+ expect(fit.raceRows.single.then, 180);+ expect(fit.raceRows.single.now, 200);+ });+}diff --git a/test/sided_volume_ui_test.dart b/test/sided_volume_ui_test.dartnew file mode 100644index 0000000..a1e6087--- /dev/null+++ b/test/sided_volume_ui_test.dart@@ -0,0 +1,50 @@+import 'package:flutter/material.dart';+import 'package:flutter_test/flutter_test.dart';+import 'package:gymmane/l10n/l10n.dart';+import 'package:gymmane/models/live_session.dart';+import 'package:gymmane/screens/session_screen.dart';+import 'package:gymmane/services/local_store.dart';+import 'package:gymmane/state/fit_state.dart';+import 'package:gymmane/theme/app_theme.dart';+import 'package:shared_preferences/shared_preferences.dart';++void main() {+ setUp(() async {+ SharedPreferences.setMockInitialValues({});+ await Store.instance.init();+ fit.resetAllData();+ setAppLanguage('en');+ });++ tearDown(() => fit.saveAndExit());++ for (final sided in [false, true]) {+ testWidgets('weight label explains ${sided ? 'one side' : 'one dumbbell'}', (tester) async {+ tester.view.physicalSize = const Size(430, 932);+ tester.view.devicePixelRatio = 1;+ addTearDown(tester.view.resetPhysicalSize);+ addTearDown(tester.view.resetDevicePixelRatio);+ final ex = fit.matchExerciseByName('Dumbbell Hammer Curl') ?? fit.matchExerciseByName('Dumbbell Curl')!;+ fit.togglePaired(ex.id);+ if (sided) fit.toggleSidedReps(ex.id);+ fit.session = WorkoutSession()+ ..exercises = [+ SessionExercise(ex.id, ex.name, ex.primary, [SessionSet(10, 10, false, repsR: sided ? 10 : null)]),+ ];+ await tester.pumpWidget(+ MaterialApp(+ theme: AppTheme.dark,+ home: const Scaffold(body: SessionScreen()),+ ),+ );+ await tester.pump(const Duration(seconds: 1));+ expect(find.text(sided ? t.weightPerSideCol('KG') : t.weightPerDumbbellCol('KG')), findsOneWidget);+ if (sided) {+ expect(find.text(t.repsLeftCol), findsOneWidget);+ expect(find.text(t.repsRightCol), findsOneWidget);+ }+ expect(tester.takeException(), isNull);+ await tester.pumpWidget(const SizedBox());+ });+ }+}diff --git a/test/stats_totals_test.dart b/test/stats_totals_test.dartindex 8b55b7a..d6b5558 100644--- a/test/stats_totals_test.dart+++ b/test/stats_totals_test.dart@@ -235,15 +235,15 @@ void main() {});group('#369 par de mancuernas', () {- test('el volumen cuenta las dos, también en lo ya hecho, y se puede quitar', () {+ test('pair settings do not reinterpret existing workouts', () {final fly = fit.matchExerciseByName('Dumbbell Fly')!.id;fit.sessions.add(LoggedSession(DateTime.now().subtract(const Duration(hours: 2)), 1800,[LoggedExercise(fly, 'Fly', 'chest', [LoggedSet(10, 24), LoggedSet(5, 30, kind: SetKind.warmup)])]));expect(fit.canPair(fly), isTrue);expect(fit.totalVolumeKg, 240);fit.togglePaired(fly);- expect(fit.totalVolumeKg, 480);- expect(fit.volumeThisWeekKg, 480);+ expect(fit.totalVolumeKg, 240);+ expect(fit.volumeThisWeekKg, 240);expect(fit.personalRecords.single.best, 24, reason: 'el récord sigue siendo el de una mancuerna');fit.togglePaired(fly);expect(fit.totalVolumeKg, 240);