clean up localization
This commit is contained in:
@@ -68,7 +68,7 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
backgroundColor: primaryColor,
|
||||
title: Text(AppTranslations.of(context).text("payment.title")),
|
||||
title: Text(AppTranslations.of(context).text("pm_.title")),
|
||||
),
|
||||
body: Card(
|
||||
child: Column(
|
||||
@@ -78,7 +78,7 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
child: Container(
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
LocalText(context, 'total.amount',
|
||||
LocalText(context, 'pm.total.amount',
|
||||
color: Colors.black, fontSize: 16),
|
||||
Text(
|
||||
' \$ ${_invoice.amount}',
|
||||
@@ -95,7 +95,7 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
child: Container(
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
LocalText(context, 'remaining_balance',
|
||||
LocalText(context, 'pm.remaining_balance',
|
||||
color: Colors.black, fontSize: 16),
|
||||
Text(
|
||||
' \$ ${_invoice.amount - _invoice.receipts[0].amount}',
|
||||
@@ -111,7 +111,7 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
child: ListView(
|
||||
children: [
|
||||
ExpansionTile(
|
||||
title: LocalText(context, 'payment.attachment',
|
||||
title: LocalText(context, 'pm.attachment',
|
||||
color: Colors.black, fontSize: 16),
|
||||
children: <Widget>[
|
||||
Padding(
|
||||
@@ -144,7 +144,7 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
],
|
||||
),
|
||||
ExpansionTile(
|
||||
title: LocalText(context, 'payment.receipt',
|
||||
title: LocalText(context, 'pm.receipt',
|
||||
color: Colors.black, fontSize: 16),
|
||||
children: <Widget>[
|
||||
Container(
|
||||
@@ -157,14 +157,14 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
MyDataColumn(
|
||||
label: LocalText(
|
||||
context,
|
||||
"payment.date",
|
||||
"pm.date",
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
MyDataColumn(
|
||||
label: LocalText(
|
||||
context,
|
||||
"payment.amount",
|
||||
"pm.amount",
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user