Available Balance in Account Statement
This commit is contained in:
@@ -10,7 +10,8 @@ import 'transaction_details_screen.dart';
|
|||||||
|
|
||||||
class AccountStatementScreen extends StatefulWidget {
|
class AccountStatementScreen extends StatefulWidget {
|
||||||
final String accountNo;
|
final String accountNo;
|
||||||
const AccountStatementScreen({super.key, required this.accountNo});
|
final String balance;
|
||||||
|
const AccountStatementScreen({super.key, required this.accountNo, required this.balance,});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<AccountStatementScreen> createState() => _AccountStatementScreen();
|
State<AccountStatementScreen> createState() => _AccountStatementScreen();
|
||||||
@@ -150,7 +151,7 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
|||||||
Text(
|
Text(
|
||||||
"${AppLocalizations.of(context).accountNumber}: ",
|
"${AppLocalizations.of(context).accountNumber}: ",
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 19,
|
fontSize: 17,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -158,12 +159,18 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 15),
|
const SizedBox(height: 15),
|
||||||
// Text(
|
Row(
|
||||||
// AppLocalizations.of(context).availableBalance,
|
children: [
|
||||||
// style: const TextStyle(fontSize: 17),
|
Text(
|
||||||
// ),
|
"${AppLocalizations.of(context).availableBalance}: ",
|
||||||
// const SizedBox(height: 15),
|
style: const TextStyle(
|
||||||
// Text(widget.accountNo, style: const TextStyle(fontSize: 17)),
|
fontSize: 17,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(widget.balance, style: const TextStyle(fontSize: 17)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 15),
|
||||||
Text(
|
Text(
|
||||||
AppLocalizations.of(context).filters,
|
AppLocalizations.of(context).filters,
|
||||||
style: const TextStyle(fontSize: 17),
|
style: const TextStyle(fontSize: 17),
|
||||||
|
@@ -523,8 +523,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) =>
|
builder: (context) =>
|
||||||
AccountStatementScreen(
|
AccountStatementScreen(
|
||||||
accountNo: users[selectedAccountIndex]
|
accountNo: users[selectedAccountIndex].accountNo!,
|
||||||
.accountNo!,
|
balance: users[selectedAccountIndex].availableBalance!,
|
||||||
)));
|
)));
|
||||||
}),
|
}),
|
||||||
_buildQuickLink(Symbols.checkbook,
|
_buildQuickLink(Symbols.checkbook,
|
||||||
|
@@ -250,6 +250,40 @@
|
|||||||
"findnearbybranched": "Find nearby branches",
|
"findnearbybranched": "Find nearby branches",
|
||||||
"searchbranch": "Search Branch",
|
"searchbranch": "Search Branch",
|
||||||
"searchbranchby": "Search by Branch Name / Code / IFSC",
|
"searchbranchby": "Search by Branch Name / Code / IFSC",
|
||||||
"branchsearchsoon": "Branch search coming soon..."
|
"branchsearchsoon": "Branch search coming soon...",
|
||||||
|
"loginFailed": "Login failed",
|
||||||
|
"invalidCredentials": "Invalid credentials",
|
||||||
|
"networkErrorDuringLogin": "Network error during login",
|
||||||
|
"unexpectedErrorDuringLogin": "Unexpected error during login",
|
||||||
|
"tokenRefreshFailed": "Token refresh failed",
|
||||||
|
"failedToRefreshToken": "Failed to refresh token",
|
||||||
|
"failedToCheckTpinStatus": "Failed to check TPIN status",
|
||||||
|
"networkErrorDuringTpinCheck": "Network error during TPIN check",
|
||||||
|
"unexpectedErrorDuringTpinCheck": "Unexpected error during TPIN check",
|
||||||
|
"failedToSetTpin": "Failed to set TPIN",
|
||||||
|
"networkErrorDuringTpinSetup": "Network error during TPIN setup",
|
||||||
|
"unexpectedErrorDuringTpinSetup": "Unexpected error during TPIN setup",
|
||||||
|
"failedToValidateBeneficiary": "Failed to validate beneficiary",
|
||||||
|
"networkError": "Network error",
|
||||||
|
"unexpectedError": "Unexpected error: ",
|
||||||
|
"invalidIfscCode": "INVALID IFSC CODE",
|
||||||
|
"invalidBeneficiaryDetails": "Invalid Beneficiary Details",
|
||||||
|
"failedToFetchBeneficiaries": "Failed to fetch beneficiaries",
|
||||||
|
"failedToDeleteBeneficiary": "Failed to delete beneficiary",
|
||||||
|
"impsTransactionFailedWithStatusCode": "IMPS transaction failed with status code: ",
|
||||||
|
"anUnexpectedErrorOccurred": "An unexpected error occurred: ",
|
||||||
|
"neftTransactionFailedWithStatusCode": "NEFT transaction failed with status code: ",
|
||||||
|
"unknownError": "Unknown error",
|
||||||
|
"failedToProcessQuickPayWithinBank": "Failed to process quick pay within bank: ",
|
||||||
|
"rtgsTransactionFailedWithStatusCode": "RTGS transaction failed with status code: ",
|
||||||
|
"failedToLoadCustomerDetails": "Failed to load customer details",
|
||||||
|
"routeNotFound": "Route not found!",
|
||||||
|
"pleaseValidateBeneficiaryDetailsFirst": "Please validate beneficiary details first.",
|
||||||
|
"beneficiaryAlreadyExists": "Beneficiary already exists",
|
||||||
|
"pleaseEnterAValidAndMatchingAccountNumber": "Please enter a valid and matching account number.",
|
||||||
|
"beneficiaryDeletedSuccessfully": "Beneficiary deleted successfully",
|
||||||
|
"areYouSureYouWantToDeleteThisBeneficiary": "Are you sure you want to delete this beneficiary?",
|
||||||
|
"yourAccountDoesNotHaveSufficientBalance": "Your account does not have sufficient balance",
|
||||||
|
"green": "Green",
|
||||||
|
"orange": "Orange"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -250,5 +250,40 @@
|
|||||||
"findnearbybranched": "आस-पास की शाखाएँ खोजें",
|
"findnearbybranched": "आस-पास की शाखाएँ खोजें",
|
||||||
"searchbranch": "शाखा खोजें",
|
"searchbranch": "शाखा खोजें",
|
||||||
"searchbranchby": "शाखा खोजें नाम / बैंक कोड / आईएफएससी द्वारा",
|
"searchbranchby": "शाखा खोजें नाम / बैंक कोड / आईएफएससी द्वारा",
|
||||||
"branchsearchsoon": "शाखा खोज सुविधा जल्द ही आ रही है..."
|
"branchsearchsoon": "शाखा खोज सुविधा जल्द ही आ रही है...",
|
||||||
|
"loginFailed": "लॉगिन विफल",
|
||||||
|
"invalidCredentials": "अवैध प्रत्यय पत्र",
|
||||||
|
"networkErrorDuringLogin": "लॉगिन के दौरान नेटवर्क त्रुटि",
|
||||||
|
"unexpectedErrorDuringLogin": "लॉगिन के दौरान अप्रत्याशित त्रुटि",
|
||||||
|
"tokenRefreshFailed": "टोकन ताज़ा विफल रहा",
|
||||||
|
"failedToRefreshToken": "टोकन रीफ़्रेश करने में विफल",
|
||||||
|
"failedToCheckTpinStatus": "टी-पिन स्थिति की जाँच करने में विफल",
|
||||||
|
"networkErrorDuringTpinCheck": "टी-पिन जाँच के दौरान नेटवर्क त्रुटि",
|
||||||
|
"unexpectedErrorDuringTpinCheck": "TPIN जाँच के दौरान अप्रत्याशित त्रुटि",
|
||||||
|
"failedToSetTpin": "Tpin सेट करने में विफल",
|
||||||
|
"networkErrorDuringTpinSetup": "Tpin सेटअप के दौरान नेटवर्क त्रुटि",
|
||||||
|
"unexpectedErrorDuringTpinSetup": "TPIN सेटअप के दौरान अप्रत्याशित त्रुटि",
|
||||||
|
"failedToValidateBeneficiary": "लाभार्थी को सत्यापित करने में विफल",
|
||||||
|
"networkError": "नेटवर्क त्रुटि",
|
||||||
|
"unexpectedError": "अप्रत्याशित त्रुटि:",
|
||||||
|
"invalidIfscCode": "अमान्य IFSC कोड",
|
||||||
|
"invalidBeneficiaryDetails": "अमान्य लाभार्थी विवरण",
|
||||||
|
"failedToFetchBeneficiaries": "लाभार्थियों को प्राप्त करने में विफल",
|
||||||
|
"failedToDeleteBeneficiary": "लाभार्थी को हटाने में विफल",
|
||||||
|
"impsTransactionFailedWithStatusCode": "IMPS लेन-देन स्थिति कोड के साथ विफल:",
|
||||||
|
"anUnexpectedErrorOccurred": "एक अप्रत्याशित त्रुटि हुई:",
|
||||||
|
"neftTransactionFailedWithStatusCode": "NEFT लेन-देन स्थिति कोड के साथ विफल:",
|
||||||
|
"unknownError": "अज्ञात त्रुटि",
|
||||||
|
"failedToProcessQuickPayWithinBank": "बैंक के भीतर क्विक पे संसाधित करने में विफल:",
|
||||||
|
"rtgsTransactionFailedWithStatusCode": "RTGS लेन-देन स्थिति कोड के साथ विफल:",
|
||||||
|
"failedToLoadCustomerDetails": "ग्राहक विवरण लोड करने में विफल",
|
||||||
|
"routeNotFound": "रूट नहीं मिला!",
|
||||||
|
"pleaseValidateBeneficiaryDetailsFirst": "कृपया पहले लाभार्थी विवरण सत्यापित करें।",
|
||||||
|
"beneficiaryAlreadyExists": "लाभार्थी पहले से मौजूद है",
|
||||||
|
"pleaseEnterAValidAndMatchingAccountNumber": "कृपया एक मान्य और मिलान करने वाला खाता संख्या दर्ज करें।",
|
||||||
|
"beneficiaryDeletedSuccessfully": "लाभार्थी सफलतापूर्वक हटाया गया।",
|
||||||
|
"areYouSureYouWantToDeleteThisBeneficiary": "क्या आप वाकई इस लाभार्थी को हटाना चाहते हैं?",
|
||||||
|
"yourAccountDoesNotHaveSufficientBalance": "आपके खाते में पर्याप्त शेष राशि नहीं है",
|
||||||
|
"green": "हरा",
|
||||||
|
"orange": "नारंगी"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user