Theme Colour bugs fixed

This commit is contained in:
2025-08-25 17:47:18 +05:30
parent 04c992c934
commit 180d3a3a60
7 changed files with 70 additions and 50 deletions

View File

@@ -262,7 +262,7 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
fontSize: 16, color: Colors.grey[600]),
),
)
: ListView.builder(
: ListView.separated(
itemCount: _transactions.length,
itemBuilder: (context, index) {
final tx = _transactions[index];
@@ -275,21 +275,21 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
tx.type == 'CR' ? Colors.green : Colors.red,
),
title: Text(
tx.name != null
? (tx.name!.length > 18
? tx.name!.substring(0, 22)
: tx.name!)
: '',
style: const TextStyle(fontSize: 14),
),
subtitle: Text(
tx.date ?? '',
style: const TextStyle(fontSize: 12),
),
trailing: Text(
"${tx.amount}",
style: const TextStyle(fontSize: 16),
),
tx.date ?? '',
style: const TextStyle(fontSize: 15),
),
subtitle: Text(
tx.name != null
? (tx.name!.length > 18
? tx.name!.substring(0, 22)
: tx.name!)
: '',
style: const TextStyle(fontSize: 12),
),
trailing: Text(
"${tx.amount}",
style: const TextStyle(fontSize: 17),
),
onTap: () {
Navigator.push(
context,
@@ -301,6 +301,9 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
},
);
},
separatorBuilder: (context, index) {
return const Divider();
},
),
),
],

View File

@@ -572,20 +572,20 @@ class _DashboardScreenState extends State<DashboardScreen> {
tx.type == 'CR' ? Colors.green : Colors.red,
),
title: Text(
tx.name != null
tx.date ?? '',
style: const TextStyle(fontSize: 15),
),
subtitle: Text(
tx.name != null
? (tx.name!.length > 18
? tx.name!.substring(0, 22)
: tx.name!)
: '',
style: const TextStyle(fontSize: 14),
),
subtitle: Text(
tx.date ?? '',
style: const TextStyle(fontSize: 12),
),
trailing: Text(
"${tx.amount}",
style: const TextStyle(fontSize: 16),
style: const TextStyle(fontSize: 17),
),
onTap: () {
Navigator.push(