|
|
|
@ -12,7 +12,7 @@ class VolumesList extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
// TODO: True message with variables and context aware
|
|
|
|
|
if (volume["nbActivity"] == 0) {
|
|
|
|
|
return const Text("Aucune activité ces x jours/mois/années");
|
|
|
|
|
return const Text("No activity the last x days/month/year");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return SingleChildScrollView(
|
|
|
|
@ -21,32 +21,32 @@ class VolumesList extends StatelessWidget {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
ContainerStatsActivities(volume["nbActivity"].toString(),
|
|
|
|
|
"Nombre Activitée(s)", Icons.numbers),
|
|
|
|
|
"Number of activities", Icons.numbers),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: media.width * 0.03,
|
|
|
|
|
),
|
|
|
|
|
ContainerStatsActivities(
|
|
|
|
|
"${Convertisseur.secondeIntoMinute(volume["durationActiviy"]).toStringAsFixed(0)} min",
|
|
|
|
|
"Temps Total",
|
|
|
|
|
"Total time",
|
|
|
|
|
Icons.timer),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: media.width * 0.03,
|
|
|
|
|
),
|
|
|
|
|
ContainerStatsActivities(
|
|
|
|
|
volume["bpmAvg"].toString(), "Bpm Moyens", Icons.favorite),
|
|
|
|
|
volume["bpmAvg"].toString(), "Average bpm", Icons.favorite),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: media.width * 0.03,
|
|
|
|
|
),
|
|
|
|
|
ContainerStatsActivities(
|
|
|
|
|
" ${Convertisseur.msIntoKmh(volume["speedAvg"]).toStringAsFixed(2)} km/h",
|
|
|
|
|
"Vitesse Moyenne",
|
|
|
|
|
"Average speed",
|
|
|
|
|
Icons.bolt),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: media.width * 0.03,
|
|
|
|
|
),
|
|
|
|
|
ContainerStatsActivities(
|
|
|
|
|
"${volume["denivelePositif"].toStringAsFixed(2)} m",
|
|
|
|
|
"Dénivelé Positif",
|
|
|
|
|
"Positive height difference",
|
|
|
|
|
Icons.hiking),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|