Skip to content

Commit 1983d38

Browse files
author
Miroslav Mazel
committed
GymMode: Use Table of Contents icon, not Menu
1 parent bc1cfc5 commit 1983d38

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/widgets/workouts/gym_mode.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ class NavigationHeader extends StatelessWidget {
11301130
),
11311131
),
11321132
IconButton(
1133-
icon: const Icon(Icons.menu),
1133+
icon: const Icon(Icons.toc),
11341134
onPressed: () {
11351135
showDialog(
11361136
context: context,

test/workout/gym_mode_screen_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void main() {
9090
expect(find.text('Bench press'), findsOneWidget);
9191
expect(find.text('Side raises'), findsOneWidget);
9292
expect(find.byIcon(Icons.close), findsOneWidget);
93-
expect(find.byIcon(Icons.menu), findsOneWidget);
93+
expect(find.byIcon(Icons.toc), findsOneWidget);
9494
expect(find.byIcon(Icons.chevron_left), findsNothing);
9595
expect(find.byIcon(Icons.chevron_right), findsOneWidget);
9696
await tester.tap(find.byIcon(Icons.chevron_right));
@@ -102,7 +102,7 @@ void main() {
102102
expect(find.text('Bench press'), findsOneWidget);
103103
expect(find.byType(ExerciseOverview), findsOneWidget);
104104
expect(find.byIcon(Icons.close), findsOneWidget);
105-
expect(find.byIcon(Icons.menu), findsOneWidget);
105+
expect(find.byIcon(Icons.toc), findsOneWidget);
106106
expect(find.byIcon(Icons.chevron_left), findsOneWidget);
107107
expect(find.byIcon(Icons.chevron_right), findsOneWidget);
108108
await tester.drag(find.byType(ExerciseOverview), const Offset(-500.0, 0.0));
@@ -119,7 +119,7 @@ void main() {
119119
expect(find.text('12 × 10 kg (2 RiR)'), findsOneWidget);
120120
expect(find.text('Make sure to warm up'), findsOneWidget, reason: 'Set comment');
121121
expect(find.byIcon(Icons.close), findsOneWidget);
122-
expect(find.byIcon(Icons.menu), findsOneWidget);
122+
expect(find.byIcon(Icons.toc), findsOneWidget);
123123
expect(find.byIcon(Icons.chevron_left), findsOneWidget);
124124
expect(find.byIcon(Icons.chevron_right), findsOneWidget);
125125

@@ -145,7 +145,7 @@ void main() {
145145
expect(find.text('Pause'), findsOneWidget);
146146
expect(find.byType(TimerWidget), findsOneWidget);
147147
expect(find.byIcon(Icons.close), findsOneWidget);
148-
expect(find.byIcon(Icons.menu), findsOneWidget);
148+
expect(find.byIcon(Icons.toc), findsOneWidget);
149149
expect(find.byIcon(Icons.chevron_left), findsOneWidget);
150150
expect(find.byIcon(Icons.chevron_right), findsOneWidget);
151151
await tester.tap(find.byIcon(Icons.chevron_right));

0 commit comments

Comments
 (0)