Skip to content

Offline gym log for Android. No account, no ads, no internet.

Add a selectable date-range report ZIP

Alexander Petrov8ec93d9b2501
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 4c8fa75..30d9e55 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -2195,6 +2195,13 @@
"@reportFoodLine": {"placeholders": {"kcal": {"type": "String"}, "protein": {"type": "int"}, "days": {"type": "int"}}},
"reportSharePdf": "Share PDF",
"reportShareCsv": "Export CSV",
+ "reportExportZip": "Export report ZIP",
+ "reportSummaryEmpty": "No workouts, food, or weigh-ins to summarize for these dates.",
+ "reportZipHint": "Choose what to include. Missing steps or synced sleep are left blank.",
+ "reportWeighIns": "Weigh-ins",
+ "reportSyncedSleep": "Synced sleep",
+ "reportSessionDetails": "Workout session details",
+ "reportZipFailed": "Could not export the report ZIP.",
"reportShareCsvBoth": "Export CSV (workouts and nutrition)",
"fastMinutes": "{n} min",
"@fastMinutes": {"placeholders": {"n": {"type": "int"}}},
diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb
index b1133f9..681aad7 100644
--- a/lib/l10n/app_es.arb
+++ b/lib/l10n/app_es.arb
@@ -1895,6 +1895,13 @@
"reportFoodLine": "{kcal} y {protein} g de proteína al día · {days} días apuntados",
"reportSharePdf": "Compartir PDF",
"reportShareCsv": "Exportar CSV",
+ "reportExportZip": "Exportar informe ZIP",
+ "reportSummaryEmpty": "No hay entrenamientos, comidas ni pesajes que resumir en estas fechas.",
+ "reportZipHint": "Elige qué incluir. Si faltan pasos o datos de sueño sincronizados, se dejan en blanco.",
+ "reportWeighIns": "Registros de peso",
+ "reportSyncedSleep": "Sueño sincronizado",
+ "reportSessionDetails": "Detalles de las sesiones",
+ "reportZipFailed": "No se pudo exportar el informe ZIP.",
"reportShareCsvBoth": "Exportar CSV (entrenos y nutrición)",
"fastMinutes": "{n} min",
"fastHours": "{n} h",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 18acdd5..f115057 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -11360,6 +11360,48 @@ abstract class AppLocalizations {
/// **'Export CSV'**
String get reportShareCsv;
+ /// No description provided for @reportExportZip.
+ ///
+ /// In en, this message translates to:
+ /// **'Export report ZIP'**
+ String get reportExportZip;
+
+ /// No description provided for @reportSummaryEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'No workouts, food, or weigh-ins to summarize for these dates.'**
+ String get reportSummaryEmpty;
+
+ /// No description provided for @reportZipHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Choose what to include. Missing steps or synced sleep are left blank.'**
+ String get reportZipHint;
+
+ /// No description provided for @reportWeighIns.
+ ///
+ /// In en, this message translates to:
+ /// **'Weigh-ins'**
+ String get reportWeighIns;
+
+ /// No description provided for @reportSyncedSleep.
+ ///
+ /// In en, this message translates to:
+ /// **'Synced sleep'**
+ String get reportSyncedSleep;
+
+ /// No description provided for @reportSessionDetails.
+ ///
+ /// In en, this message translates to:
+ /// **'Workout session details'**
+ String get reportSessionDetails;
+
+ /// No description provided for @reportZipFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Could not export the report ZIP.'**
+ String get reportZipFailed;
+
/// No description provided for @reportShareCsvBoth.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_ar.dart b/lib/l10n/app_localizations_ar.dart
index 605a9e3..523a59f 100644
--- a/lib/l10n/app_localizations_ar.dart
+++ b/lib/l10n/app_localizations_ar.dart
@@ -6450,6 +6450,27 @@ class AppLocalizationsAr extends AppLocalizations {
@override
String get reportShareCsv => 'تصدير CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'تصدير CSV (التمارين والتغذية)';
diff --git a/lib/l10n/app_localizations_bn.dart b/lib/l10n/app_localizations_bn.dart
index 4e631d6..7b5133a 100644
--- a/lib/l10n/app_localizations_bn.dart
+++ b/lib/l10n/app_localizations_bn.dart
@@ -6412,6 +6412,27 @@ class AppLocalizationsBn extends AppLocalizations {
@override
String get reportShareCsv => 'CSV এক্সপোর্ট করো';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV এক্সপোর্ট করো (ওয়ার্কআউট আর পুষ্টি)';
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index 068b773..d1d4fcc 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -6443,6 +6443,27 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get reportShareCsv => 'CSV exportieren';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV exportieren (Trainings und Ernährung)';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 11f6ca6..4233119 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -6391,6 +6391,27 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get reportShareCsv => 'Export CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Export CSV (workouts and nutrition)';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index 95317b5..3a9fc07 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -6432,6 +6432,28 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get reportShareCsv => 'Exportar CSV';
+ @override
+ String get reportExportZip => 'Exportar informe ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No hay entrenamientos, comidas ni pesajes que resumir en estas fechas.';
+
+ @override
+ String get reportZipHint =>
+ 'Elige qué incluir. Si faltan pasos o datos de sueño sincronizados, se dejan en blanco.';
+
+ @override
+ String get reportWeighIns => 'Registros de peso';
+
+ @override
+ String get reportSyncedSleep => 'Sueño sincronizado';
+
+ @override
+ String get reportSessionDetails => 'Detalles de las sesiones';
+
+ @override
+ String get reportZipFailed => 'No se pudo exportar el informe ZIP.';
+
@override
String get reportShareCsvBoth => 'Exportar CSV (entrenos y nutrición)';
diff --git a/lib/l10n/app_localizations_fa.dart b/lib/l10n/app_localizations_fa.dart
index 5902f54..7b1c778 100644
--- a/lib/l10n/app_localizations_fa.dart
+++ b/lib/l10n/app_localizations_fa.dart
@@ -6351,6 +6351,27 @@ class AppLocalizationsFa extends AppLocalizations {
@override
String get reportShareCsv => 'خروجی CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'خروجی CSV (تمرین‌ها و تغذیه)';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 8539a07..64c09a1 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -6446,6 +6446,27 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get reportShareCsv => 'Exporter le CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Exporter le CSV (séances et nutrition)';
diff --git a/lib/l10n/app_localizations_hi.dart b/lib/l10n/app_localizations_hi.dart
index 12078f1..d0c604a 100644
--- a/lib/l10n/app_localizations_hi.dart
+++ b/lib/l10n/app_localizations_hi.dart
@@ -6391,6 +6391,27 @@ class AppLocalizationsHi extends AppLocalizations {
@override
String get reportShareCsv => 'CSV एक्सपोर्ट करें';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV एक्सपोर्ट करें (वर्कआउट और न्यूट्रिशन)';
diff --git a/lib/l10n/app_localizations_id.dart b/lib/l10n/app_localizations_id.dart
index bba23e1..f34ee37 100644
--- a/lib/l10n/app_localizations_id.dart
+++ b/lib/l10n/app_localizations_id.dart
@@ -6282,6 +6282,27 @@ class AppLocalizationsId extends AppLocalizations {
@override
String get reportShareCsv => 'Ekspor CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Ekspor CSV (latihan dan nutrisi)';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index a8ef046..afb07a7 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -6428,6 +6428,27 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get reportShareCsv => 'Esporta CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Esporta CSV (allenamenti e nutrizione)';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index 71d8fcd..92a8cdd 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -6208,6 +6208,27 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get reportShareCsv => 'CSVを書き出す';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSVを書き出す(トレーニングと栄養)';
diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart
index 7c6cb8c..675accf 100644
--- a/lib/l10n/app_localizations_ko.dart
+++ b/lib/l10n/app_localizations_ko.dart
@@ -6219,6 +6219,27 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get reportShareCsv => 'CSV 내보내기';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV 내보내기 (운동과 영양)';
diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart
index 974abda..a67fc6a 100644
--- a/lib/l10n/app_localizations_nl.dart
+++ b/lib/l10n/app_localizations_nl.dart
@@ -6433,6 +6433,27 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get reportShareCsv => 'CSV exporteren';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV exporteren (trainingen en voeding)';
diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart
index b86aee6..dfeec00 100644
--- a/lib/l10n/app_localizations_pl.dart
+++ b/lib/l10n/app_localizations_pl.dart
@@ -6521,6 +6521,27 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get reportShareCsv => 'Eksportuj CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Eksportuj CSV (treningi i odżywianie)';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 94a824f..2a13533 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -6425,6 +6425,27 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get reportShareCsv => 'Exportar CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Exportar CSV (treinos e nutrição)';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index c285761..f6dcc6e 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -6622,6 +6622,27 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get reportShareCsv => 'Экспорт CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Экспорт CSV (тренировки и питание)';
diff --git a/lib/l10n/app_localizations_tr.dart b/lib/l10n/app_localizations_tr.dart
index 7619229..b738995 100644
--- a/lib/l10n/app_localizations_tr.dart
+++ b/lib/l10n/app_localizations_tr.dart
@@ -6412,6 +6412,27 @@ class AppLocalizationsTr extends AppLocalizations {
@override
String get reportShareCsv => 'CSV dışa aktar';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV dışa aktar (antrenmanlar ve beslenme)';
diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart
index 2b29566..6d0d920 100644
--- a/lib/l10n/app_localizations_uk.dart
+++ b/lib/l10n/app_localizations_uk.dart
@@ -6514,6 +6514,27 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get reportShareCsv => 'Експорт CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Експорт CSV (тренування й харчування)';
diff --git a/lib/l10n/app_localizations_ur.dart b/lib/l10n/app_localizations_ur.dart
index bcb43bf..5a56284 100644
--- a/lib/l10n/app_localizations_ur.dart
+++ b/lib/l10n/app_localizations_ur.dart
@@ -6356,6 +6356,27 @@ class AppLocalizationsUr extends AppLocalizations {
@override
String get reportShareCsv => 'CSV ایکسپورٹ کرو';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'CSV ایکسپورٹ کرو (ورزشیں اور غذائیت)';
diff --git a/lib/l10n/app_localizations_vi.dart b/lib/l10n/app_localizations_vi.dart
index 5afd8b4..acbd2c5 100644
--- a/lib/l10n/app_localizations_vi.dart
+++ b/lib/l10n/app_localizations_vi.dart
@@ -6287,6 +6287,27 @@ class AppLocalizationsVi extends AppLocalizations {
@override
String get reportShareCsv => 'Xuất CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => 'Xuất CSV (buổi tập và dinh dưỡng)';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index 608eb57..ba44ccd 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -6152,6 +6152,27 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get reportShareCsv => '导出 CSV';
+ @override
+ String get reportExportZip => 'Export report ZIP';
+
+ @override
+ String get reportSummaryEmpty => 'No workouts, food, or weigh-ins to summarize for these dates.';
+
+ @override
+ String get reportZipHint => 'Choose what to include. Missing steps or synced sleep are left blank.';
+
+ @override
+ String get reportWeighIns => 'Weigh-ins';
+
+ @override
+ String get reportSyncedSleep => 'Synced sleep';
+
+ @override
+ String get reportSessionDetails => 'Workout session details';
+
+ @override
+ String get reportZipFailed => 'Could not export the report ZIP.';
+
@override
String get reportShareCsvBoth => '导出 CSV(训练与营养)';
diff --git a/lib/services/report_zip.dart b/lib/services/report_zip.dart
new file mode 100644
index 0000000..3988a4e
--- /dev/null
+++ b/lib/services/report_zip.dart
@@ -0,0 +1,35 @@
+import 'dart:typed_data';
+
+import 'package:archive/archive.dart';
+
+import '../state/fit_state.dart';
+import 'file_share.dart';
+import 'plan_pdf.dart';
+
+String _stamp(RangeReport r) {
+ String day(DateTime date) => date.toIso8601String().split('T').first;
+ return '${day(r.from)}_${day(r.to)}';
+}
+
+String _sectionName(ReportSection section) => switch (section) {
+ ReportSection.weighIns => 'weigh-ins',
+ _ => section.name,
+};
+
+Uint8List buildReportZip(RangeReport r, Set<ReportSection> sections) {
+ final archive = Archive();
+ final stamp = _stamp(r);
+ for (final section in ReportSection.values.where(sections.contains)) {
+ archive.addFile(
+ ArchiveFile.string('gymmane-${_sectionName(section)}-$stamp.csv', fit.reportSectionCsv(r, section)),
+ );
+ }
+ return ZipEncoder().encodeBytes(archive);
+}
+
+Future<void> shareReportZip(RangeReport r, Set<ReportSection> sections) => shareFile(
+ 'gymmane-report-${_stamp(r)}.zip',
+ buildReportZip(r, sections),
+ mime: 'application/zip',
+ subject: reportRangeLabel(r),
+);
diff --git a/lib/state/report_state.dart b/lib/state/report_state.dart
index 694e08f..92bd6aa 100644
--- a/lib/state/report_state.dart
+++ b/lib/state/report_state.dart
@@ -4,6 +4,8 @@ typedef ReportLift = ({String id, String name, int sessions, int sets, double vo
typedef ReportRecord = ({String id, String name, double kg, DateTime date});
typedef ReportFood = ({int days, double kcal, double protein, double carbs, double fat, int waterMl});
+enum ReportSection { workouts, nutrition, steps, supplements, weighIns, sleep, sessions }
+
class RangeReport {
RangeReport({
required this.from,
@@ -46,7 +48,17 @@ class RangeReport {
bool get empty => sessions == 0 && food == null && weightFrom == null;
}
-mixin ReportState on FitCore, ToolsState, LibraryState, SettingsState, TimelineState, StatsState, NutritionState {
+mixin ReportState
+ on
+ FitCore,
+ ToolsState,
+ LibraryState,
+ SettingsState,
+ TimelineState,
+ StatsState,
+ StepsState,
+ HealthState,
+ NutritionState {
RangeReport rangeReport(DateTime from, DateTime to) {
final a = _dayKey(from), b = _dayKey(to);
final end = shiftDays(b, 1);
@@ -172,14 +184,103 @@ mixin ReportState on FitCore, ToolsState, LibraryState, SettingsState, TimelineS
}
String reportWorkoutsCsv(RangeReport r) {
+ return Store.instance.exportCsv(_reportSessions(r).toList());
+ }
+
+ bool _inReport(RangeReport r, DateTime date) {
+ final day = _dayKey(date);
+ return !day.isBefore(r.from) && !day.isAfter(r.to);
+ }
+
+ Iterable<LoggedSession> _reportSessions(RangeReport r) {
final end = shiftDays(r.to, 1);
- return Store.instance
- .exportCsv([for (final s in sessions) if (!s.day.isBefore(r.from) && s.day.isBefore(end)) s]);
+ return sessions.where((s) => !s.day.isBefore(r.from) && s.day.isBefore(end));
+ }
+
+ Iterable<DateTime> _reportDates(RangeReport r) sync* {
+ for (var d = r.from; !d.isAfter(r.to); d = shiftDays(d, 1)) {
+ yield d;
+ }
+ }
+
+ String reportSectionCsv(RangeReport r, ReportSection section) => switch (section) {
+ ReportSection.workouts => reportWorkoutsCsv(r),
+ ReportSection.nutrition => reportNutritionCsv(r),
+ ReportSection.steps => _reportCsv('date,steps', [
+ for (final day in _reportDates(r)) [HealthMetrics.dayKey(day), stepsByDay[HealthMetrics.dayKey(day)]],
+ ]),
+ ReportSection.supplements => _reportSupplementsCsv(r),
+ ReportSection.weighIns => _reportWeighInsCsv(r),
+ ReportSection.sleep => _reportCsv('date,sleep_minutes', [
+ for (final day in _reportDates(r))
+ [HealthMetrics.dayKey(day), healthOnDay(HealthMetric.sleep, day)?.firstOrNull],
+ ]),
+ ReportSection.sessions => _reportSessionsCsv(r),
+ };
+
+ String _reportSupplementsCsv(RangeReport r) {
+ final names = {for (final s in supplements) s.id: s.name};
+ return _reportCsv('date,supplement', [
+ for (final day in _reportDates(r))
+ for (final id in takenOn(day))
+ if (names[id] case final name?) [HealthMetrics.dayKey(day), name],
+ ]);
+ }
+
+ String _reportWeighInsCsv(RangeReport r) {
+ final weights = bodyweight.where((w) => _inReport(r, w.date)).toList()
+ ..sort((a, b) => a.date.compareTo(b.date));
+ return _reportCsv('date,recorded_at,weight_kg', [
+ for (final w in weights) [HealthMetrics.dayKey(w.date), w.date.toIso8601String(), w.kg],
+ ]);
+ }
+
+ String _reportSessionsCsv(RangeReport r) {
+ final picked = _reportSessions(r).toList()..sort((a, b) => a.date.compareTo(b.date));
+ return _reportCsv(
+ 'date,started_at,ended_at,name,duration_s,exercises,working_sets,volume_kg,'
+ 'hr_avg_bpm,hr_max_bpm,sleep_rating_1_5,energy_rating_1_5,deload',
+ [
+ for (final s in picked)
+ [
+ HealthMetrics.dayKey(s.day),
+ s.day.toIso8601String(),
+ s.date.toIso8601String(),
+ sessionTitle(s),
+ s.durationSec,
+ s.exercises.length,
+ s.setCount,
+ s.volume,
+ s.hrAvg,
+ s.hrMax,
+ s.sleep,
+ s.energy,
+ s.deload,
+ ],
+ ],
+ );
+ }
+
+ static final _csvFormula = RegExp(r'^\s*[=+@-]|^[\t\r\n]');
+ static final _csvQuoted = RegExp(r'[",\r\n]');
+
+ static String _reportCsv(String header, Iterable<List<Object?>> rows) {
+ String cell(Object? value) {
+ var text = value?.toString() ?? '';
+ if (value is String && _csvFormula.hasMatch(text)) text = "'$text";
+ return _csvQuoted.hasMatch(text) ? '"${text.replaceAll('"', '""')}"' : text;
+ }
+
+ final csv = StringBuffer()..writeln(header);
+ for (final row in rows) {
+ csv.writeln(row.map(cell).join(','));
+ }
+ return csv.toString();
}
String reportNutritionCsv(RangeReport r) {
final rows = StringBuffer('date,kcal,protein_g,carbs_g,fat_g,fiber_g,water_ml,foods\n');
- for (var d = r.from; !d.isAfter(r.to); d = shiftDays(d, 1)) {
+ for (final d in _reportDates(r)) {
final list = entriesOn(d);
final water = waterOn(d);
if (list.isEmpty && water == 0) continue;
diff --git a/lib/widgets/report_sheet.dart b/lib/widgets/report_sheet.dart
index 0d94adb..76b4d21 100644
--- a/lib/widgets/report_sheet.dart
+++ b/lib/widgets/report_sheet.dart
@@ -4,10 +4,12 @@ import 'package:phosphoricons_flutter/phosphoricons_flutter.dart';
import '../l10n/l10n.dart';
import '../services/plan_pdf.dart';
+import '../services/report_zip.dart';
import '../state/fit_state.dart';
import '../theme/app_colors.dart';
import '../theme/app_theme.dart';
import 'glass.dart';
+import 'liquid_notch.dart';
import 'ui_kit.dart';
void showReportSheet(BuildContext context) {
@@ -69,6 +71,25 @@ class _ReportSheetState extends State<ReportSheet> {
if (mounted) setState(() => _busy = false);
}
+ Future<void> _shareZip(RangeReport report) async {
+ if (_busy) return;
+ setState(() => _busy = true);
+ try {
+ final sections = await showAppSheet<Set<ReportSection>>(
+ context: context,
+ isScrollControlled: true,
+ backgroundColor: Colors.transparent,
+ builder: (_) => _ReportZipSheet(report: report),
+ );
+ if (!mounted || sections == null) return;
+ await shareReportZip(report, sections);
+ } catch (_) {
+ if (mounted) showNotchToast(context, t.reportZipFailed);
+ } finally {
+ if (mounted) setState(() => _busy = false);
+ }
+ }
+
@override
Widget build(BuildContext context) {
final gc = context.gc;
@@ -106,7 +127,7 @@ class _ReportSheetState extends State<ReportSheet> {
child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.stretch, children: [
const SheetHandle(),
const SizedBox(height: 16),
- SheetTitle(t.reportTitle, subtitle: t.reportHint),
+ SheetTitle(t.reportTitle, subtitle: t.reportPickRange),
const SizedBox(height: 16),
Center(
child: SegToggle([
@@ -147,7 +168,7 @@ class _ReportSheetState extends State<ReportSheet> {
if (r.empty)
Padding(
padding: const EdgeInsets.symmetric(vertical: 18),
- child: Text(t.reportEmpty,
+ child: Text(t.reportSummaryEmpty,
textAlign: TextAlign.center, style: AppTheme.s(13, color: gc.textSecondary, height: 1.4)),
)
else ...[
@@ -183,9 +204,92 @@ class _ReportSheetState extends State<ReportSheet> {
onTap: () => _share(pdf: false),
),
],
+ const SizedBox(height: 10),
+ GhostButton(
+ label: t.reportExportZip,
+ icon: PhosphorIconsRegular.fileZip,
+ onTap: () => _shareZip(r),
+ ),
const SizedBox(height: 4),
]),
),
);
}
}
+
+class _ReportZipSheet extends StatefulWidget {
+ const _ReportZipSheet({required this.report});
+
+ final RangeReport report;
+
+ @override
+ State<_ReportZipSheet> createState() => _ReportZipSheetState();
+}
+
+class _ReportZipSheetState extends State<_ReportZipSheet> {
+ final _sections = {ReportSection.workouts, ReportSection.nutrition};
+
+ String _label(ReportSection section) => switch (section) {
+ ReportSection.workouts => titleCase(t.reportWorkouts),
+ ReportSection.nutrition => t.nutrition,
+ ReportSection.steps => t.homeCardSteps,
+ ReportSection.supplements => titleCase(t.supplementsLabel),
+ ReportSection.weighIns => t.reportWeighIns,
+ ReportSection.sleep => t.reportSyncedSleep,
+ ReportSection.sessions => t.reportSessionDetails,
+ };
+
+ @override
+ Widget build(BuildContext context) {
+ final gc = context.gc;
+ return Container(
+ padding: sheetPad(context),
+ constraints: BoxConstraints(maxHeight: MediaQuery.sizeOf(context).height * 0.88),
+ decoration: sheetDecoration(gc),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ Flexible(
+ child: SingleChildScrollView(
+ child: Material(
+ type: MaterialType.transparency,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ const SheetHandle(),
+ const SizedBox(height: 16),
+ SheetTitle(t.reportExportZip, subtitle: reportRangeLabel(widget.report)),
+ const SizedBox(height: 8),
+ Text(t.reportZipHint, style: AppTheme.f(13, color: gc.textSecondary, height: 1.4)),
+ const SizedBox(height: 8),
+ for (final section in ReportSection.values)
+ CheckboxListTile(
+ dense: true,
+ contentPadding: EdgeInsets.zero,
+ controlAffinity: ListTileControlAffinity.leading,
+ title: Text(_label(section)),
+ value: _sections.contains(section),
+ onChanged: (on) => setState(() {
+ if (on == true) {
+ _sections.add(section);
+ } else {
+ _sections.remove(section);
+ }
+ }),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 12),
+ FilledButton(
+ onPressed: _sections.isEmpty ? null : () => Navigator.of(context).pop(_sections),
+ child: Text(t.reportExportZip),
+ ),
+ ],
+ ),
+ );
+ }
+}
diff --git a/test/pending_translation_keys.txt b/test/pending_translation_keys.txt
index abfdb29..ed2ee71 100644
--- a/test/pending_translation_keys.txt
+++ b/test/pending_translation_keys.txt
@@ -12,3 +12,10 @@ sidesReps
progSchemeTitle
groupMoveUp
groupMoveDown
+reportExportZip
+reportSummaryEmpty
+reportZipHint
+reportWeighIns
+reportSyncedSleep
+reportSessionDetails
+reportZipFailed
diff --git a/test/report_zip_test.dart b/test/report_zip_test.dart
new file mode 100644
index 0000000..c046a76
--- /dev/null
+++ b/test/report_zip_test.dart
@@ -0,0 +1,160 @@
+import 'dart:convert';
+
+import 'package:archive/archive.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:gymmane/l10n/l10n.dart';
+import 'package:gymmane/models/nutrition.dart';
+import 'package:gymmane/models/workout.dart';
+import 'package:gymmane/services/health_metrics.dart';
+import 'package:gymmane/services/local_store.dart';
+import 'package:gymmane/services/report_zip.dart';
+import 'package:gymmane/state/fit_state.dart';
+import 'package:gymmane/theme/app_theme.dart';
+import 'package:gymmane/widgets/report_sheet.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+Map<String, String> filesOf(Uint8List bytes) => {
+ for (final file in ZipDecoder().decodeBytes(bytes)) file.name: utf8.decode(file.content),
+};
+
+void main() {
+ TestWidgetsFlutterBinding.ensureInitialized();
+
+ setUp(() async {
+ SharedPreferences.setMockInitialValues({});
+ await Store.instance.init();
+ fit.resetAllData();
+ setAppLanguage('en');
+ });
+
+ test('selected CSVs respect the date range and distinguish missing data from zero', () {
+ final start = DateTime(2026, 11, 9);
+ final end = DateTime(2026, 11, 11);
+ const stamp = '2026-11-09_2026-11-11';
+ fit.stepsByDay.addAll({'2026-11-08': 9000, '2026-11-09': 8000, '2026-11-11': 0, '2026-11-12': 7000});
+ fit.healthByDay[HealthMetric.sleep] = {
+ '2026-11-08': [455],
+ '2026-11-10': [431.5],
+ '2026-11-11': [],
+ '2026-11-12': [482],
+ };
+ fit.supplements.add(const Supplement(id: 's', name: 'Vitamin, "D"', dose: '10 mcg'));
+ fit.supplementsTaken.addAll({
+ '2026-11-08': {'s'},
+ '2026-11-09': {'s'},
+ '2026-11-11': {'s'},
+ '2026-11-12': {'s'},
+ });
+ fit.bodyweight.addAll([
+ BodyweightEntry(DateTime(2026, 11, 8, 23), 89.9),
+ BodyweightEntry(DateTime(2026, 11, 11, 19), 89.1, note: 'Private note'),
+ BodyweightEntry(DateTime(2026, 11, 9, 7), 89.2),
+ BodyweightEntry(DateTime(2026, 11, 9, 9), 89.3),
+ BodyweightEntry(DateTime(2026, 11, 12), 88.8),
+ ]);
+
+ final r = fit.rangeReport(start, end);
+ final files = filesOf(
+ buildReportZip(r, {
+ ReportSection.steps,
+ ReportSection.sleep,
+ ReportSection.supplements,
+ ReportSection.weighIns,
+ }),
+ );
+ expect(
+ files.keys,
+ unorderedEquals([
+ 'gymmane-steps-$stamp.csv',
+ 'gymmane-sleep-$stamp.csv',
+ 'gymmane-supplements-$stamp.csv',
+ 'gymmane-weigh-ins-$stamp.csv',
+ ]),
+ );
+ expect(files['gymmane-steps-$stamp.csv'], 'date,steps\n2026-11-09,8000\n2026-11-10,\n2026-11-11,0\n');
+ expect(
+ files['gymmane-sleep-$stamp.csv'],
+ 'date,sleep_minutes\n2026-11-09,\n2026-11-10,431.5\n2026-11-11,\n',
+ );
+ expect(
+ files['gymmane-supplements-$stamp.csv'],
+ 'date,supplement\n2026-11-09,"Vitamin, ""D"""\n2026-11-11,"Vitamin, ""D"""\n',
+ );
+ expect(
+ files['gymmane-weigh-ins-$stamp.csv'],
+ 'date,recorded_at,weight_kg\n'
+ '2026-11-09,2026-11-09T07:00:00.000,89.2\n'
+ '2026-11-09,2026-11-09T09:00:00.000,89.3\n'
+ '2026-11-11,2026-11-11T19:00:00.000,89.1\n',
+ );
+ });
+
+ test('keeps the existing CSVs and puts workout metadata in a separate file', () {
+ const stamp = '2026-11-09_2026-11-09';
+ final day = DateTime(2026, 11, 9);
+ fit.sessions.add(
+ LoggedSession(
+ DateTime(2026, 11, 10, 0, 15),
+ 1800,
+ [
+ LoggedExercise('EIeI8Vf', 'Barbell Bench Press', 'chest', [LoggedSet(8, 50)]),
+ ],
+ name: 'Upper, "A"',
+ hrAvg: 108,
+ sleep: 4,
+ energy: 3,
+ ),
+ );
+ fit.sessions.add(LoggedSession(DateTime(2026, 11, 10, 1), 300, [], name: 'Outside the range'));
+ fit.foodLog.add(
+ FoodEntry(
+ id: 'f',
+ at: day,
+ meal: Meal.breakfast,
+ name: 'Food',
+ per: const Macros(kcal: 200, protein: 20),
+ ),
+ );
+ final r = fit.rangeReport(day, day);
+ final files = filesOf(
+ buildReportZip(r, {ReportSection.workouts, ReportSection.nutrition, ReportSection.sessions}),
+ );
+ expect(files['gymmane-workouts-$stamp.csv'], fit.reportWorkoutsCsv(r));
+ expect(files['gymmane-nutrition-$stamp.csv'], fit.reportNutritionCsv(r));
+ expect(files['gymmane-nutrition-$stamp.csv'], contains('2026-11-09,200,20,'));
+ expect(
+ files['gymmane-sessions-$stamp.csv'],
+ contains(
+ '2026-11-09,2026-11-09T23:45:00.000,2026-11-10T00:15:00.000,"Upper, ""A""",1800,1,1,400.0,108,,4,3,false\n',
+ ),
+ );
+ expect(files['gymmane-sessions-$stamp.csv'], isNot(contains('Outside the range')));
+ });
+
+ testWidgets('the section picker is available for ranges without workouts or food', (tester) async {
+ tester.view.devicePixelRatio = 1;
+ tester.view.physicalSize = const Size(390, 844);
+ addTearDown(tester.view.reset);
+ await tester.pumpWidget(
+ MaterialApp(
+ theme: AppTheme.dark,
+ home: const Scaffold(body: ReportSheet()),
+ ),
+ );
+ await tester.tap(find.text(t.reportExportZip));
+ await tester.pumpAndSettle();
+ expect(find.byType(CheckboxListTile), findsNWidgets(ReportSection.values.length));
+
+ await tester.tap(find.widgetWithText(CheckboxListTile, 'Workouts'));
+ await tester.tap(find.widgetWithText(CheckboxListTile, t.nutrition));
+ await tester.pumpAndSettle();
+ expect(tester.widget<FilledButton>(find.byType(FilledButton)).onPressed, isNull);
+
+ await tester.tap(find.widgetWithText(CheckboxListTile, t.homeCardSteps));
+ await tester.pumpAndSettle();
+ expect(tester.widget<FilledButton>(find.byType(FilledButton)).onPressed, isNotNull);
+ expect(tester.takeException(), isNull);
+ });
+}