diff --git a/lib/common_widget/container/profile/profile_info_user.dart b/lib/common_widget/container/profile/profile_info_user.dart index 26ea71c..9f48af8 100644 --- a/lib/common_widget/container/profile/profile_info_user.dart +++ b/lib/common_widget/container/profile/profile_info_user.dart @@ -21,7 +21,7 @@ class ProfileInfoUser extends StatelessWidget { ), Expanded( child: TitleSubtitleCell( - title: context.watch().getTotalTimeAllActivity().toString(), + title: context.watch().getTotalTimeAllActivity().toStringAsFixed(2), subtitle: "Temps en activité", ), ), @@ -31,7 +31,7 @@ class ProfileInfoUser extends StatelessWidget { Expanded( child: TitleSubtitleCell( title: - "${context.watch().getTotalDenivelePositif().toStringAsFixed(2)} + m", + "${context.watch().getTotalDenivelePositifAllActivity().toStringAsFixed(2)} + m", subtitle: "Total dénivelé positif", ), ), @@ -41,7 +41,7 @@ class ProfileInfoUser extends StatelessWidget { Expanded( child: TitleSubtitleCell( title: - "${context.watch().getTotalDeniveleNegatif().toStringAsFixed(2)} - m", + "${context.watch().getTotalDeniveleNegatifAllActivity().toStringAsFixed(2)} - m", subtitle: "Total dénivelé négatif", ), ), diff --git a/lib/common_widget/steps.dart b/lib/common_widget/steps.dart index 03acc68..5354730 100644 --- a/lib/common_widget/steps.dart +++ b/lib/common_widget/steps.dart @@ -9,7 +9,7 @@ class Steps extends StatelessWidget { Widget build(BuildContext context) { String steps = Provider.of(context, listen: false) .managerSelectedActivity - .getTimeAllActivitySelected() + .getStepsAllActivitySelected() .toString(); return Padding( diff --git a/lib/view/home/mobile/mobile_homeview.dart b/lib/view/home/mobile/mobile_homeview.dart index b60e2a9..5aba44d 100644 --- a/lib/view/home/mobile/mobile_homeview.dart +++ b/lib/view/home/mobile/mobile_homeview.dart @@ -45,10 +45,10 @@ class _MobileHomeView extends State { double avgAltitude = managerSelectedActivity.activitySelected.first.activityInfo.altitudeAvg; // -- Speed -- // - double maxSpeed = managerSelectedActivity.getMaxSpeed(); - double avgSpeed = managerSelectedActivity.getAvgSpeed(); + double maxSpeed = managerSelectedActivity.getMaxSpeedAllActivitySelected(); + double avgSpeed = managerSelectedActivity.getAvgSpeedAllActivitySelected(); data.maxSpeed = maxSpeed; - data.time = context.watch().managerSelectedActivity.getTotalTime(); + data.time = context.watch().managerSelectedActivity.getTimeAllActivitySelected(); return Scaffold( backgroundColor: TColor.white, body: SingleChildScrollView(