WorkoutRunnerLocalizations class
All user-facing strings shown by the bundled workout-runner widgets.
The package ships an English-default implementation. To localise, subclass WorkoutRunnerLocalizations, override the strings you care about, and expose your instance via WorkoutRunnerLocalizationsScope. Widgets that haven't been migrated to use the lookup yet will continue to render their hard-coded English fallback — the migration is additive, not breaking.
Number / duration formatters live alongside the strings so locale-aware formatting only needs a single override site.
Constructors
- WorkoutRunnerLocalizations()
-
const
Properties
- actionCancel → String
-
no setter
- actionOk → String
-
no setter
- cardioComplete → String
-
no setter
- closeAction → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- performedExercises → String
-
no setter
- repsInReserveLabel → String
-
no setter
- repsLabel → String
-
no setter
- restAdd30 → String
-
no setter
- restBreathe → String
-
no setter
- restGetReady → String
-
no setter
- restHeader → String
-
no setter
- restLabel → String
-
no setter
- restNone → String
-
no setter
- restRemainingTrailing → String
-
no setter
- restSkip → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveChanges → String
-
no setter
- saveSet → String
-
no setter
- statAvgPace → String
-
no setter
- statDistance → String
-
no setter
- statExercises → String
-
no setter
- statLaps → String
-
no setter
- statReps → String
-
no setter
- statSets → String
-
no setter
- statVolume → String
-
no setter
- statWorkTime → String
-
no setter
- unitKg → String
-
no setter
- unitKm → String
-
no setter
- unitPerKm → String
-
no setter
- weightLabel → String
-
no setter
- workoutComplete → String
-
no setter
Methods
-
formatWeight(
double value) → String -
Format a double weight for display. Strips trailing
.0so 60.0 → "60" while 62.5 → "62.5". Override to switch locales or units. -
labelForSetType(
SetType type) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setEditLabel(
int index) → String -
setIndexLabel(
int index) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited