flutter
flutter copied to clipboard
Wrong back swipe ends the workout and there is no chance to continue
Steps to Reproduce
- Start a workout and complete a few sets
- Push back button and exit the workout without finishing it.
- Try to start the same workout.
- It ignores your progress and start it from the beginning.
Expected results: It should continue where the user left.
I see what you mean. Usually when I exit the current workout, I consider it "done" but having it be kept active in the background is probably a good idea.
I would like to help solve this issue
@saket2001 it's all yours.
One possibility would be to save the current step and jump to it when re-opening the gym view. This would be reset when reaching the last page with the impression, a different gym mode is started or some time has passed
Depending on how much work you want to do, adding a new gym mode provider might be a good idea that would be also useful for other features
For one of the other issues we were thinking about adding a provider that manages the gym mode. It might be a possibility to add it for this issue so that at the moment it just stores the current step