mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
PurchaseScreen: Center align the text
For smaller screens
This commit is contained in:
@ -112,7 +112,11 @@ class MonthlyRentalWidget extends StatelessWidget {
|
|||||||
return PurchaseCard(
|
return PurchaseCard(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
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),
|
const SizedBox(height: 32.0),
|
||||||
PurchaseWidget(
|
PurchaseWidget(
|
||||||
skus: _generateSkus(),
|
skus: _generateSkus(),
|
||||||
@ -155,7 +159,11 @@ class YearlyPurchaseWidget extends StatelessWidget {
|
|||||||
return PurchaseCard(
|
return PurchaseCard(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
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),
|
const SizedBox(height: 32.0),
|
||||||
PurchaseWidget(
|
PurchaseWidget(
|
||||||
skus: _generateSkus(),
|
skus: _generateSkus(),
|
||||||
|
@ -35,7 +35,7 @@ class PurchaseButton extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return RaisedButton(
|
return RaisedButton(
|
||||||
child: Text(text),
|
child: Text(text, textAlign: TextAlign.center),
|
||||||
color: Theme.of(context).primaryColor,
|
color: Theme.of(context).primaryColor,
|
||||||
padding: const EdgeInsets.fromLTRB(32.0, 16.0, 32.0, 16.0),
|
padding: const EdgeInsets.fromLTRB(32.0, 16.0, 32.0, 16.0),
|
||||||
onPressed: product != null ? () => _initPurchase(context) : null,
|
onPressed: product != null ? () => _initPurchase(context) : null,
|
||||||
|
Reference in New Issue
Block a user