2 Commits

7 changed files with 81 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:kmobile/l10n/app_localizations.dart';
import 'package:material_symbols_icons/symbols.dart'; import 'package:material_symbols_icons/symbols.dart';
class TransactionDetailsScreen extends StatelessWidget { class TransactionDetailsScreen extends StatelessWidget {
@@ -39,12 +40,12 @@ class TransactionDetailsScreen extends StatelessWidget {
// } // }
return Scaffold( return Scaffold(
appBar: AppBar(title: const Text("Transaction Details")), appBar: AppBar(title: Text(AppLocalizations.of(context).transactionDetails)),
body: Padding( body: Padding(
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: Column( child: Column(
children: [ children: [
// Absolute center for amount + icon + date + details + share button // Absolute center for amount + icon + date + details
Expanded( Expanded(
flex: 3, flex: 3,
child: Center( child: Center(
@@ -92,11 +93,12 @@ class TransactionDetailsScreen extends StatelessWidget {
flex: 5, flex: 5,
child: ListView( child: ListView(
children: [ children: [
_buildDetailRow("Transaction Type", transaction.type ?? ""), // ignore: unnecessary_cast
_buildDetailRow("Transfer Type", transaction.name.split("/").first ?? ""), _buildDetailRow(AppLocalizations.of(context).transactionType as String, transaction.type ?? ""),
_buildDetailRow(AppLocalizations.of(context).transferType, transaction.name.split("/").first ?? ""),
if(transaction.name.length> 12) ... [ if(transaction.name.length> 12) ... [
_buildDetailRow("UTR No", transaction.name.split("= ")[1].split(" ")[0] ?? ""), _buildDetailRow(AppLocalizations.of(context).utrNo, transaction.name.split("= ")[1].split(" ")[0] ?? ""),
_buildDetailRow("Beneficiary Account No", transaction.name.split("A/C ").last ?? "") _buildDetailRow(AppLocalizations.of(context).beneficiaryAccountNo, transaction.name.split("A/C ").last ?? "")
] ]
], ],
), ),

View File

@@ -48,7 +48,7 @@ class PreferenceScreen extends StatelessWidget {
ListTile( ListTile(
leading: const Icon(Icons.color_lens), leading: const Icon(Icons.color_lens),
title: Text(AppLocalizations.of(context).themeColor), title: Text(AppLocalizations.of(context).themeColor),
enabled: false, //enabled: false,
onTap: () { onTap: () {
showDialog( showDialog(
context: context, context: context,

View File

@@ -231,6 +231,11 @@
"noBeneficiaryFound": "No beneficiaries found", "noBeneficiaryFound": "No beneficiaries found",
"beneficiaryName": "Beneficiary Name", "beneficiaryName": "Beneficiary Name",
"validateBeneficiary": "Validate Beneficiary", "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."
} }

View File

@@ -231,5 +231,10 @@
"noBeneficiaryFound": "कोई लाभार्थी नहीं मिला", "noBeneficiaryFound": "कोई लाभार्थी नहीं मिला",
"beneficiaryName": "लाभार्थी नाम", "beneficiaryName": "लाभार्थी नाम",
"validateBeneficiary": "लाभार्थी को सत्यापित करें", "validateBeneficiary": "लाभार्थी को सत्यापित करें",
"themeMode": "थीम मोड" "themeMode": "थीम मोड",
"transactionDetails": "लेन-देन विवरण",
"transactionType": "लेनदेन प्रकार",
"transferType": "स्थानांतरण प्रकार",
"utrNo": "यूटीआर नंबर",
"beneficiaryAccountNo": "लाभार्थी खाता संख्या"
} }

View File

@@ -1414,6 +1414,36 @@ abstract class AppLocalizations {
/// In en, this message translates to: /// In en, this message translates to:
/// **'Theme Mode'** /// **'Theme Mode'**
String get themeMode; 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> { class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {

View File

@@ -667,4 +667,19 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get themeMode => 'Theme Mode'; 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.';
} }

View File

@@ -667,4 +667,19 @@ class AppLocalizationsHi extends AppLocalizations {
@override @override
String get themeMode => 'थीम मोड'; String get themeMode => 'थीम मोड';
@override
String get transactionDetails => 'लेन-देन विवरण';
@override
String get transactionType => 'लेनदेन प्रकार';
@override
String get transferType => 'स्थानांतरण प्रकार';
@override
String get utrNo => 'यूटीआर नंबर';
@override
String get beneficiaryAccountNo => 'लाभार्थी खाता संख्या';
} }