Skip to content

Commit 837fb68

Browse files
committed
fix: fix different spacing of first row
Fixing the different `sizedbox` rendering on android 12. Closes #6
1 parent 3e6ebbb commit 837fb68

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/pages/MainPage.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,24 @@ class _MainPageState extends State<MainPage> {
133133
),
134134
SizedBox(height: 20),
135135
Row(
136-
mainAxisAlignment: MainAxisAlignment.start,
136+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
137137
children: <Widget>[
138-
SizedBox(width: 15),
139138
CalculatorButton(
140139
label: 'AC',
141140
fillColor: kClearButtonsColor,
142141
textSize: 22,
143142
callback: onAllClearClick),
144-
SizedBox(width: 15),
145143
CalculatorButton(
146144
label: 'C',
147145
fillColor: kClearButtonsColor,
148146
callback: onClearClick,
149147
),
148+
SizedBox(
149+
width: 85,
150+
),
151+
SizedBox(
152+
width: 85,
153+
),
150154
],
151155
),
152156
Row(

0 commit comments

Comments
 (0)