This commit is contained in:
2025-12-01 12:58:17 +05:30
parent 8aa5b170ca
commit 8c7e94759a
9 changed files with 387 additions and 404 deletions

View File

@@ -42,10 +42,10 @@ class _AccountInfoScreen extends State<AccountInfoScreen> {
return AppLocalizations.of(context).recurringDeposit;
case 'ca':
return "Current Account";
case 'cc':
case 'cc':
return "Cash Credit Account";
case 'od':
return "Overdraft Account";
return "Overdraft Account";
default:
return AppLocalizations.of(context).unknownAccount;
}

View File

@@ -150,36 +150,42 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
margin: const EdgeInsets.only(bottom: 10),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
AppLocalizations.of(context).accountNumber,
style: const TextStyle(
fontWeight: FontWeight.w500, fontSize: 17),
),
const VerticalDivider(width: 20, thickness: 1, indent: 5, endIndent: 5, color: Colors.grey),
DropdownButton<User>(
value: selectedUser,
onChanged: (User? newUser) {
if (newUser != null) {
setState(() {
selectedUser = newUser;
});
_loadTransactions();
}
},
items: widget.users.map((user) {
return DropdownMenuItem<User>(
value: user,
child: Text(user.accountNo.toString()),
);
}).toList(),
underline: Container(), // Remove the underline
),
Spacer(),
],
), ),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
AppLocalizations.of(context).accountNumber,
style: const TextStyle(
fontWeight: FontWeight.w500, fontSize: 17),
),
const VerticalDivider(
width: 20,
thickness: 1,
indent: 5,
endIndent: 5,
color: Colors.grey),
DropdownButton<User>(
value: selectedUser,
onChanged: (User? newUser) {
if (newUser != null) {
setState(() {
selectedUser = newUser;
});
_loadTransactions();
}
},
items: widget.users.map((user) {
return DropdownMenuItem<User>(
value: user,
child: Text(user.accountNo.toString()),
);
}).toList(),
underline: Container(), // Remove the underline
),
Spacer(),
],
),
),
),
Card(
margin: const EdgeInsets.only(bottom: 10),