Remove again the "Till end of the week" message

This wasn't describing properly how the rest days are being handled
This commit is contained in:
Roland Geider
2025-03-19 22:24:21 +01:00
parent 7324f1b679
commit d6eba96e50
3 changed files with 33 additions and 34 deletions

View File

@@ -212,7 +212,6 @@
"restDay": "Rest day",
"isRestDay": "Is rest day",
"isRestDayHelp": "Please note that all sets and exercises will be removed when you mark a day as a rest day.",
"tillEndOfWeek": "Till end of the week",
"needsLogsToAdvance": "Needs logs to advance",
"needsLogsToAdvanceHelp": "Select if you want the routine to progress to the next scheduled day only if you've logged a workout for the day",
"routineDays": "Days in routine",

View File

@@ -460,21 +460,21 @@ class _DashboardWorkoutWidgetState extends State<DashboardWorkoutWidget> {
out.add(const Divider());
}
if (_routine!.fitInWeek) {
out.add(Row(
children: [
Expanded(
child: Text(
AppLocalizations.of(context).tillEndOfWeek,
style: const TextStyle(fontWeight: FontWeight.bold),
overflow: TextOverflow.ellipsis,
),
),
const Icon(Icons.hotel),
],
));
out.add(const Divider());
}
// if (_routine!.fitInWeek) {
// out.add(Row(
// children: [
// Expanded(
// child: Text(
// AppLocalizations.of(context).tillEndOfWeek,
// style: const TextStyle(fontWeight: FontWeight.bold),
// overflow: TextOverflow.ellipsis,
// ),
// ),
// const Icon(Icons.hotel),
// ],
// ));
// out.add(const Divider());
// }
return out;
}

View File

@@ -52,24 +52,24 @@ class RoutineDetail extends StatelessWidget {
..._routine.dayDataCurrentIteration
.where((dayData) => dayData.day != null)
.map((dayData) => RoutineDayWidget(dayData, _routine.id!, viewMode)),
if (_routine.fitInWeek)
Padding(
padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12),
child: Card(
margin: EdgeInsets.zero,
child: ListTile(
tileColor: Theme.of(context).focusColor,
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
title: Text(
i18n.tillEndOfWeek,
style: Theme.of(context).textTheme.headlineSmall,
overflow: TextOverflow.ellipsis,
),
leading: const Icon(Icons.hotel),
minLeadingWidth: 8,
),
),
),
// if (_routine.fitInWeek)
// Padding(
// padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12),
// child: Card(
// margin: EdgeInsets.zero,
// child: ListTile(
// tileColor: Theme.of(context).focusColor,
// contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
// title: Text(
// i18n.tillEndOfWeek,
// style: Theme.of(context).textTheme.headlineSmall,
// overflow: TextOverflow.ellipsis,
// ),
// leading: const Icon(Icons.hotel),
// minLeadingWidth: 8,
// ),
// ),
// ),
],
);
}