Transaction Details localized to Hindi
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:kmobile/l10n/app_localizations.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
|
||||
class TransactionDetailsScreen extends StatelessWidget {
|
||||
@@ -39,12 +40,12 @@ class TransactionDetailsScreen extends StatelessWidget {
|
||||
// }
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: const Text("Transaction Details")),
|
||||
appBar: AppBar(title: Text(AppLocalizations.of(context).transactionDetails)),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
children: [
|
||||
// Absolute center for amount + icon + date + details + share button
|
||||
// Absolute center for amount + icon + date + details
|
||||
Expanded(
|
||||
flex: 3,
|
||||
child: Center(
|
||||
@@ -92,11 +93,12 @@ class TransactionDetailsScreen extends StatelessWidget {
|
||||
flex: 5,
|
||||
child: ListView(
|
||||
children: [
|
||||
_buildDetailRow("Transaction Type", transaction.type ?? ""),
|
||||
_buildDetailRow("Transfer Type", transaction.name.split("/").first ?? ""),
|
||||
// ignore: unnecessary_cast
|
||||
_buildDetailRow(AppLocalizations.of(context).transactionType as String, transaction.type ?? ""),
|
||||
_buildDetailRow(AppLocalizations.of(context).transferType, transaction.name.split("/").first ?? ""),
|
||||
if(transaction.name.length> 12) ... [
|
||||
_buildDetailRow("UTR No", transaction.name.split("= ")[1].split(" ")[0] ?? ""),
|
||||
_buildDetailRow("Beneficiary Account No", transaction.name.split("A/C ").last ?? "")
|
||||
_buildDetailRow(AppLocalizations.of(context).utrNo, transaction.name.split("= ")[1].split(" ")[0] ?? ""),
|
||||
_buildDetailRow(AppLocalizations.of(context).beneficiaryAccountNo, transaction.name.split("A/C ").last ?? "")
|
||||
]
|
||||
],
|
||||
),
|
||||
|
@@ -231,6 +231,11 @@
|
||||
"noBeneficiaryFound": "No beneficiaries found",
|
||||
"beneficiaryName": "Beneficiary Name",
|
||||
"validateBeneficiary": "Validate Beneficiary",
|
||||
"themeMode": "Theme Mode"
|
||||
"themeMode": "Theme Mode",
|
||||
"transactionDetails": "Transaction Details",
|
||||
"transactionType": "Transaction Type",
|
||||
"transferType": "Transfer Type",
|
||||
"utrNo": "UTR No.",
|
||||
"beneficiaryAccountNo": "Beneficiary Account No."
|
||||
}
|
||||
|
||||
|
@@ -231,5 +231,10 @@
|
||||
"noBeneficiaryFound": "कोई लाभार्थी नहीं मिला",
|
||||
"beneficiaryName": "लाभार्थी नाम",
|
||||
"validateBeneficiary": "लाभार्थी को सत्यापित करें",
|
||||
"themeMode": "थीम मोड"
|
||||
"themeMode": "थीम मोड",
|
||||
"transactionDetails": "लेन-देन विवरण",
|
||||
"transactionType": "लेनदेन प्रकार",
|
||||
"transferType": "स्थानांतरण प्रकार",
|
||||
"utrNo": "यूटीआर नंबर",
|
||||
"beneficiaryAccountNo": "लाभार्थी खाता संख्या"
|
||||
}
|
||||
|
@@ -1414,6 +1414,36 @@ abstract class AppLocalizations {
|
||||
/// In en, this message translates to:
|
||||
/// **'Theme Mode'**
|
||||
String get themeMode;
|
||||
|
||||
/// No description provided for @transactionDetails.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Transaction Details'**
|
||||
String get transactionDetails;
|
||||
|
||||
/// No description provided for @transactionType.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Transaction Type'**
|
||||
String get transactionType;
|
||||
|
||||
/// No description provided for @transferType.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Transfer Type'**
|
||||
String get transferType;
|
||||
|
||||
/// No description provided for @utrNo.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'UTR No.'**
|
||||
String get utrNo;
|
||||
|
||||
/// No description provided for @beneficiaryAccountNo.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Beneficiary Account No.'**
|
||||
String get beneficiaryAccountNo;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
|
||||
|
@@ -667,4 +667,19 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get themeMode => 'Theme Mode';
|
||||
|
||||
@override
|
||||
String get transactionDetails => 'Transaction Details';
|
||||
|
||||
@override
|
||||
String get transactionType => 'Transaction Type';
|
||||
|
||||
@override
|
||||
String get transferType => 'Transfer Type';
|
||||
|
||||
@override
|
||||
String get utrNo => 'UTR No.';
|
||||
|
||||
@override
|
||||
String get beneficiaryAccountNo => 'Beneficiary Account No.';
|
||||
}
|
||||
|
@@ -667,4 +667,19 @@ class AppLocalizationsHi extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get themeMode => 'थीम मोड';
|
||||
|
||||
@override
|
||||
String get transactionDetails => 'लेन-देन विवरण';
|
||||
|
||||
@override
|
||||
String get transactionType => 'लेनदेन प्रकार';
|
||||
|
||||
@override
|
||||
String get transferType => 'स्थानांतरण प्रकार';
|
||||
|
||||
@override
|
||||
String get utrNo => 'यूटीआर नंबर';
|
||||
|
||||
@override
|
||||
String get beneficiaryAccountNo => 'लाभार्थी खाता संख्या';
|
||||
}
|
||||
|
Reference in New Issue
Block a user