Beneficiary lists changed

This commit is contained in:
2025-11-20 13:31:42 +05:30
parent 4fe6af4098
commit f0d5233afc
3 changed files with 120 additions and 109 deletions

View File

@@ -97,7 +97,9 @@ class _ManageBeneficiariesScreen extends State<ManageBeneficiariesScreen> {
itemCount: _filteredBeneficiaries.length, itemCount: _filteredBeneficiaries.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final item = _filteredBeneficiaries[index]; final item = _filteredBeneficiaries[index];
return ListTile( return Card(
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
child: ListTile(
leading: CircleAvatar( leading: CircleAvatar(
radius: 24, radius: 24,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@@ -123,6 +125,7 @@ class _ManageBeneficiariesScreen extends State<ManageBeneficiariesScreen> {
), ),
); );
}, },
),
); );
}, },
); );

View File

@@ -120,7 +120,9 @@ class _FundTransferBeneficiaryScreenState
// By wrapping the ListTile in an Opacity widget, we can make it look // By wrapping the ListTile in an Opacity widget, we can make it look
// disabled while ensuring the onTap callback still works. // disabled while ensuring the onTap callback still works.
return Opacity( return Card(
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
child: Opacity(
opacity: isCoolingDown ? 0.5 : 1.0, opacity: isCoolingDown ? 0.5 : 1.0,
child: ListTile( child: ListTile(
// REMOVED the 'enabled' property from here. // REMOVED the 'enabled' property from here.
@@ -175,6 +177,7 @@ class _FundTransferBeneficiaryScreenState
} }
}, },
), ),
),
); );
}, },
); );

View File

@@ -55,7 +55,10 @@ class FundTransferSelfAccountsScreen extends StatelessWidget {
itemCount: filteredAccounts.length, itemCount: filteredAccounts.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final account = filteredAccounts[index]; final account = filteredAccounts[index];
return ListTile( return Card(
margin: const EdgeInsets.symmetric(
horizontal: 12, vertical: 6),
child: ListTile(
leading: CircleAvatar( leading: CircleAvatar(
radius: 24, radius: 24,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@@ -80,7 +83,8 @@ class FundTransferSelfAccountsScreen extends StatelessWidget {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => FundTransferSelfAmountScreen( builder: (context) =>
FundTransferSelfAmountScreen(
debitAccountNo: debitAccountNo, debitAccountNo: debitAccountNo,
creditAccount: account, // Pass the User object creditAccount: account, // Pass the User object
remitterName: remitterName, remitterName: remitterName,
@@ -88,6 +92,7 @@ class FundTransferSelfAccountsScreen extends StatelessWidget {
), ),
); );
}, },
),
); );
}, },
), ),