fix: correctly align next previous buttons

This commit is contained in:
FahadFahim71 2024-02-08 10:29:32 +01:00
parent 7abb060306
commit e112c64ee7

View file

@ -153,7 +153,13 @@ class _AuthScreenState extends State<AuthScreen> {
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment:
(widget.previousButtonBuilder != null &&
previousButton == null)
? MainAxisAlignment.spaceAround
: widget.steps.first != step
? MainAxisAlignment.spaceBetween
: MainAxisAlignment.end,
children: [
if (widget.steps.first != step)
if (widget.previousButtonBuilder == null) ...[