Skip to content

Commit 5c55654

Browse files
committed
Align STAY SIGNED IN and TRY ANOTHER WEBID in a Row()
1 parent 3b1e96b commit 5c55654

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

lib/src/widgets/solid_login_panel.dart

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,21 @@ class SolidLoginPanel {
124124
],
125125
),
126126

127-
if (staySignedInCheckbox != null) staySignedInCheckbox,
128-
if (tryAnotherAccountButton != null) ...[
129-
const SizedBox(height: 4.0),
127+
if (staySignedInCheckbox != null) ...[
128+
if (tryAnotherAccountButton != null)
129+
Row(
130+
mainAxisAlignment: MainAxisAlignment.center,
131+
crossAxisAlignment: CrossAxisAlignment.center,
132+
children: [
133+
staySignedInCheckbox,
134+
const SizedBox(width: 16.0),
135+
tryAnotherAccountButton,
136+
],
137+
)
138+
else
139+
staySignedInCheckbox,
140+
] else if (tryAnotherAccountButton != null)
130141
tryAnotherAccountButton,
131-
],
132142

133143
const SizedBox(height: 20.0),
134144

0 commit comments

Comments
 (0)