From c78b576bed67fc7c80282dd3fedffc7173a4477b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 7 Sep 2020 21:32:25 +0200 Subject: [PATCH] PurchaseScreen: Wrap the bottom buttons Sometimes the available screen space is not enough for them to be on the same line. --- lib/screens/purchase_screen.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/screens/purchase_screen.dart b/lib/screens/purchase_screen.dart index 96c43d62..8be44de7 100644 --- a/lib/screens/purchase_screen.dart +++ b/lib/screens/purchase_screen.dart @@ -58,7 +58,7 @@ class _PurchaseScreenState extends State { const SizedBox(height: 32.0), Padding( padding: const EdgeInsets.fromLTRB(16.0, 0.0, 16.0, 16.0), - child: Row( + child: Wrap( children: [ RestorePurchaseButton(), OutlineButton( @@ -72,7 +72,8 @@ class _PurchaseScreenState extends State { }, ), ], - mainAxisAlignment: MainAxisAlignment.spaceEvenly, + alignment: WrapAlignment.spaceEvenly, + direction: Axis.horizontal, ), ), ],