Gym mode: add optional sticky set values - #1290
Open
BrianHotopp wants to merge 1 commit into
Open
Conversation
When dialing in the weight over the first sets of an exercise, the log form of every following set is pre-filled with the planned values again, so any adjustment has to be re-entered for every set. When the new "sticky set values" setting is enabled, the values (weight, repetitions, RiR, units) logged for a set are remembered and the next set of the same exercise is pre-filled with them instead of the planned ones. This intentionally only copies the values: the id, session, slot entry and targets stay those of a fresh template, so saving still creates a new log row for the correct slot. The setting is disabled by default and can be toggled in the gym mode options; it is persisted like the other gym mode settings. The remembered values are cleared when the workout ends.
BrianHotopp
force-pushed
the
gym-mode-carry-over-logged-values
branch
from
August 1, 2026 01:23
59c4414 to
0f335bb
Compare
Author
|
Should this be default true? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
New "sticky set values" gym-mode setting (default off): the next set of an exercise pre-fills from the values you last logged — weight, reps, RiR, units — instead of the planned ones.
Use case: dialing in the weight over the first sets of an exercise. Today every set re-fills from the plan, so the adjustment has to be re-entered each time.
Related Issue(s)
gym_state*.dart, so a small rebase may be needed depending on merge order — happy to do it.Please check that the PR fulfills these requirements
dart format .)flutter analyzeclean;flutter test test/features/routines244/244 (+6 tests).