Skip to content

Commit d6eba96

Browse files
committed
Remove again the "Till end of the week" message
This wasn't describing properly how the rest days are being handled
1 parent 7324f1b commit d6eba96

File tree

3 files changed

+33
-34
lines changed

3 files changed

+33
-34
lines changed

lib/l10n/app_en.arb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@
212212
"restDay": "Rest day",
213213
"isRestDay": "Is rest day",
214214
"isRestDayHelp": "Please note that all sets and exercises will be removed when you mark a day as a rest day.",
215-
"tillEndOfWeek": "Till end of the week",
216215
"needsLogsToAdvance": "Needs logs to advance",
217216
"needsLogsToAdvanceHelp": "Select if you want the routine to progress to the next scheduled day only if you've logged a workout for the day",
218217
"routineDays": "Days in routine",

lib/widgets/dashboard/widgets.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -460,21 +460,21 @@ class _DashboardWorkoutWidgetState extends State<DashboardWorkoutWidget> {
460460
out.add(const Divider());
461461
}
462462

463-
if (_routine!.fitInWeek) {
464-
out.add(Row(
465-
children: [
466-
Expanded(
467-
child: Text(
468-
AppLocalizations.of(context).tillEndOfWeek,
469-
style: const TextStyle(fontWeight: FontWeight.bold),
470-
overflow: TextOverflow.ellipsis,
471-
),
472-
),
473-
const Icon(Icons.hotel),
474-
],
475-
));
476-
out.add(const Divider());
477-
}
463+
// if (_routine!.fitInWeek) {
464+
// out.add(Row(
465+
// children: [
466+
// Expanded(
467+
// child: Text(
468+
// AppLocalizations.of(context).tillEndOfWeek,
469+
// style: const TextStyle(fontWeight: FontWeight.bold),
470+
// overflow: TextOverflow.ellipsis,
471+
// ),
472+
// ),
473+
// const Icon(Icons.hotel),
474+
// ],
475+
// ));
476+
// out.add(const Divider());
477+
// }
478478

479479
return out;
480480
}

lib/widgets/routines/routine_detail.dart

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,24 @@ class RoutineDetail extends StatelessWidget {
5252
..._routine.dayDataCurrentIteration
5353
.where((dayData) => dayData.day != null)
5454
.map((dayData) => RoutineDayWidget(dayData, _routine.id!, viewMode)),
55-
if (_routine.fitInWeek)
56-
Padding(
57-
padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12),
58-
child: Card(
59-
margin: EdgeInsets.zero,
60-
child: ListTile(
61-
tileColor: Theme.of(context).focusColor,
62-
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
63-
title: Text(
64-
i18n.tillEndOfWeek,
65-
style: Theme.of(context).textTheme.headlineSmall,
66-
overflow: TextOverflow.ellipsis,
67-
),
68-
leading: const Icon(Icons.hotel),
69-
minLeadingWidth: 8,
70-
),
71-
),
72-
),
55+
// if (_routine.fitInWeek)
56+
// Padding(
57+
// padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12),
58+
// child: Card(
59+
// margin: EdgeInsets.zero,
60+
// child: ListTile(
61+
// tileColor: Theme.of(context).focusColor,
62+
// contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
63+
// title: Text(
64+
// i18n.tillEndOfWeek,
65+
// style: Theme.of(context).textTheme.headlineSmall,
66+
// overflow: TextOverflow.ellipsis,
67+
// ),
68+
// leading: const Icon(Icons.hotel),
69+
// minLeadingWidth: 8,
70+
// ),
71+
// ),
72+
// ),
7373
],
7474
);
7575
}

0 commit comments

Comments
 (0)