Skip to content

Commit ab11ff5

Browse files
committed
refactor: remove unnecessary center
1 parent 462c4e1 commit ab11ff5

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

lib/profile/view/profile_view.dart

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,19 @@ class Profile extends StatelessWidget {
4545
backgroundColor: kDeepOrange,
4646
title: const DisplayName(),
4747
),
48-
body: Center(
49-
child: Column(
50-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
51-
crossAxisAlignment: CrossAxisAlignment.center,
52-
children: const [
53-
SizedBox(height: 50),
54-
ProfilePhoto(),
55-
EmailAddress(),
56-
Spacer(),
57-
TotalCompletedQuizzes(),
58-
Spacer(),
59-
LogOutButton(),
60-
Spacer(),
61-
],
62-
),
48+
body: Column(
49+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
50+
crossAxisAlignment: CrossAxisAlignment.center,
51+
children: const [
52+
SizedBox(height: 50),
53+
ProfilePhoto(),
54+
EmailAddress(),
55+
Spacer(),
56+
TotalCompletedQuizzes(),
57+
Spacer(),
58+
LogOutButton(),
59+
Spacer(),
60+
],
6361
),
6462
),
6563
);

0 commit comments

Comments
 (0)