EXERLOG / exer_log

exer_log - authored by @KalleHallden

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise totals widget not working when viewing workout from calendar

jorre127 opened this issue · comments

The exercise totals widget seems to always display 0 when opening a workout from the calendar in view mode, in redo mode it seems to work fine.
Screenshot 2022-08-11 at 23 14 39

Yeah it should work but it doesn't auto update as the reps and stuff change. It's a button, so you can press it and then it will update the numbers correctly. Not very well written, this was one of the smaller bugs that I had forgotten about hehe

can we save the total for each workout in the firestore then when viewing the workout it will display that total instead of recalculating eveything ?

maybe the problem is with implementation because when you click REDO button:

onPressed: () {
        Navigator.pop(context);
        Navigator.of(context).pop();
        Navigator.of(context).push(
          MaterialPageRoute(
            builder: (context) => WorkoutPage(widget.workout),
          ),
        );
      },

totals widget works well, and each button click shows proper values, but VIEW button have:

onPressed: () {
        addExercises(widget.workout);
        Navigator.pop(context);
      },

Iam just guesting, because for now my application flow knowledge is on beginning level :)

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.