Skip to content

Commit 823b501

Browse files
committed
WorkoutLogs can be a StatelessWidget
1 parent 67241ed commit 823b501

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

lib/widgets/routines/workout_logs.dart

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,11 @@ import 'package:wger/models/workouts/routine.dart';
2525
import 'package:wger/theme/theme.dart';
2626
import 'package:wger/widgets/routines/log.dart';
2727

28-
class WorkoutLogs extends StatefulWidget {
28+
class WorkoutLogs extends StatelessWidget {
2929
final Routine _routine;
3030

3131
const WorkoutLogs(this._routine);
3232

33-
@override
34-
_WorkoutLogsState createState() => _WorkoutLogsState();
35-
}
36-
37-
class _WorkoutLogsState extends State<WorkoutLogs> {
38-
final dayController = TextEditingController();
39-
40-
@override
41-
void dispose() {
42-
dayController.dispose();
43-
super.dispose();
44-
}
45-
4633
@override
4734
Widget build(BuildContext context) {
4835
return ListView(
@@ -62,7 +49,7 @@ class _WorkoutLogsState extends State<WorkoutLogs> {
6249
),
6350
SizedBox(
6451
width: double.infinity,
65-
child: WorkoutLogCalendar(widget._routine),
52+
child: WorkoutLogCalendar(_routine),
6653
),
6754
],
6855
);

0 commit comments

Comments
 (0)