PurchaseScreen: Center align the text

For smaller screens
This commit is contained in:
Vishesh Handa
2020-09-07 21:38:47 +02:00
parent c78b576bed
commit 618ae071b9
2 changed files with 11 additions and 3 deletions

View File

@ -112,7 +112,11 @@ class MonthlyRentalWidget extends StatelessWidget {
return PurchaseCard(
child: Column(
children: [
Text(tr('purchase_screen.monthly.title'), style: textTheme.headline5),
Text(
tr('purchase_screen.monthly.title'),
style: textTheme.headline5,
textAlign: TextAlign.center,
),
const SizedBox(height: 32.0),
PurchaseWidget(
skus: _generateSkus(),
@ -155,7 +159,11 @@ class YearlyPurchaseWidget extends StatelessWidget {
return PurchaseCard(
child: Column(
children: [
Text(tr('purchase_screen.oneTime.title'), style: textTheme.headline5),
Text(
tr('purchase_screen.oneTime.title'),
style: textTheme.headline5,
textAlign: TextAlign.center,
),
const SizedBox(height: 32.0),
PurchaseWidget(
skus: _generateSkus(),

View File

@ -35,7 +35,7 @@ class PurchaseButton extends StatelessWidget {
}
return RaisedButton(
child: Text(text),
child: Text(text, textAlign: TextAlign.center),
color: Theme.of(context).primaryColor,
padding: const EdgeInsets.fromLTRB(32.0, 16.0, 32.0, 16.0),
onPressed: product != null ? () => _initPurchase(context) : null,