Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,14 @@
"@add": {
"description": "Add button text"
},
"increase": "Increase",
"@increase": {
"description": "Tooltip / screen-reader label for a button that increases a numeric input by one step"
},
"decrease": "Decrease",
"@decrease": {
"description": "Tooltip / screen-reader label for a button that decreases a numeric input by one step"
},
"variations": "Variations",
"@variations": {
"description": "Variations of one exercise (e.g. benchpress and benchpress narrow)"
Expand Down
2 changes: 2 additions & 0 deletions lib/widgets/routines/forms/repetitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class _RepetitionInputWidgetState extends ConsumerState<RepetitionInputWidget> {
// "Quick-remove" button
IconButton(
icon: const Icon(Icons.remove, color: Colors.black),
tooltip: i18n.decrease,
onPressed: () {
final base = currentReps ?? 0;
final newValue = base - widget.valueChange;
Expand Down Expand Up @@ -178,6 +179,7 @@ class _RepetitionInputWidgetState extends ConsumerState<RepetitionInputWidget> {
// "Quick-add" button
IconButton(
icon: const Icon(Icons.add, color: Colors.black),
tooltip: i18n.increase,
onPressed: () {
final base = currentReps ?? 0;
final newValue = base + widget.valueChange;
Expand Down
2 changes: 2 additions & 0 deletions lib/widgets/routines/forms/weight.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class _WeightInputWidgetState extends ConsumerState<WeightInputWidget> {
IconButton(
// "Quick-remove" button
icon: const Icon(Icons.remove, color: Colors.black),
tooltip: i18n.decrease,
onPressed: () {
final base = currentWeight ?? 0;
final newValue = base - widget.valueChange;
Expand Down Expand Up @@ -177,6 +178,7 @@ class _WeightInputWidgetState extends ConsumerState<WeightInputWidget> {
// "Quick-add" button
IconButton(
icon: const Icon(Icons.add, color: Colors.black),
tooltip: i18n.increase,
onPressed: () {
final base = currentWeight ?? 0;
final newValue = base + widget.valueChange;
Expand Down