PurchaseScreen: Wrap the bottom buttons

Sometimes the available screen space is not enough for them to be on the
same line.
This commit is contained in:
Vishesh Handa
2020-09-07 21:32:25 +02:00
parent 35f76ebe4c
commit c78b576bed

View File

@ -58,7 +58,7 @@ class _PurchaseScreenState extends State<PurchaseScreen> {
const SizedBox(height: 32.0), const SizedBox(height: 32.0),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(16.0, 0.0, 16.0, 16.0), padding: const EdgeInsets.fromLTRB(16.0, 0.0, 16.0, 16.0),
child: Row( child: Wrap(
children: [ children: [
RestorePurchaseButton(), RestorePurchaseButton(),
OutlineButton( OutlineButton(
@ -72,7 +72,8 @@ class _PurchaseScreenState extends State<PurchaseScreen> {
}, },
), ),
], ],
mainAxisAlignment: MainAxisAlignment.spaceEvenly, alignment: WrapAlignment.spaceEvenly,
direction: Axis.horizontal,
), ),
), ),
], ],