mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Cleanup
This commit is contained in:
@@ -45,7 +45,6 @@ class RoutinesProvider with ChangeNotifier {
|
||||
static const _routinesLogsSubpath = 'logs';
|
||||
static const _routinesDateSequenceDisplaySubpath = 'date-sequence-display';
|
||||
static const _routinesDateSequenceGymSubpath = 'date-sequence-gym';
|
||||
static const _routinesCurrentIterationDisplaySubpath = 'current-iteration-display';
|
||||
static const _daysUrlPath = 'day';
|
||||
static const _slotsUrlPath = 'slot';
|
||||
static const _slotEntriesUrlPath = 'slot-entry';
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:wger/providers/routines.dart';
|
||||
import 'package:wger/widgets/routines/app_bar.dart';
|
||||
import 'package:wger/widgets/core/app_bar.dart';
|
||||
import 'package:wger/widgets/routines/routine_edit.dart';
|
||||
|
||||
class RoutineEditScreen extends StatelessWidget {
|
||||
@@ -34,7 +34,7 @@ class RoutineEditScreen extends StatelessWidget {
|
||||
final routine = Provider.of<RoutinesProvider>(context).findById(routineId);
|
||||
|
||||
return Scaffold(
|
||||
appBar: RoutineDetailAppBar(routine),
|
||||
appBar: EmptyAppBar(routine.name),
|
||||
body: RoutineEdit(routine),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class _ReorderableDaysListState extends State<ReorderableDaysList> {
|
||||
),
|
||||
onTap: () async {
|
||||
final day = Day.empty();
|
||||
day.name = i18n.newDay;
|
||||
day.name = '${i18n.newDay} ${widget.days.length + 1}';
|
||||
day.routineId = widget.routineId;
|
||||
final newDay = await provider.addDay(day);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user