mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
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:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user