mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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(
|
||||
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(),
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user