Skip to content

Commit 4974396

Browse files
committed
Switch the order of the buttons
Also, make the next button more promintent
1 parent 6d1c259 commit 4974396

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/screens/add_exercise_screen.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class _AddExerciseScreenState extends State<AddExerciseScreen> {
3939
Row(
4040
mainAxisAlignment: MainAxisAlignment.spaceAround,
4141
children: [
42+
OutlinedButton(
43+
onPressed: details.onStepCancel,
44+
child: Text(AppLocalizations.of(context).previous),
45+
),
4246
if (_currentStep == lastStepIndex)
4347
ElevatedButton(
4448
onPressed: () async {
@@ -50,14 +54,10 @@ class _AddExerciseScreenState extends State<AddExerciseScreen> {
5054
child: Text(AppLocalizations.of(context).save),
5155
)
5256
else
53-
OutlinedButton(
57+
ElevatedButton(
5458
onPressed: details.onStepContinue,
5559
child: Text(AppLocalizations.of(context).next),
5660
),
57-
OutlinedButton(
58-
onPressed: details.onStepCancel,
59-
child: Text(AppLocalizations.of(context).previous),
60-
),
6161
],
6262
),
6363
],

0 commit comments

Comments
 (0)