OHO-9(Corrections)
This commit is contained in:
parent
619f606e6c
commit
f1397272e5
1 changed files with 12 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ class _EmailsScreenState extends State<EmailsScreen> {
|
||||||
: Colors.green,
|
: Colors.green,
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
"₹${email['amount']?.toStringAsFixed(2) ?? '---'}",
|
"₹${(email['amount'] is num) ? (email['amount'] as num).toStringAsFixed(2) : email['amount'] ?? '---'}",
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|
@ -102,7 +102,17 @@ class _EmailsScreenState extends State<EmailsScreen> {
|
||||||
subtitle: Column(
|
subtitle: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(email['vendor'] ?? "Unknown Vendor"),
|
Text(
|
||||||
|
(email['vendor'] ?? "Unknown Vendor")
|
||||||
|
.replaceAll(
|
||||||
|
RegExp(
|
||||||
|
r'[a-z0-9._%+-]+@[a-z0-9.-]+',
|
||||||
|
caseSensitive: false,
|
||||||
|
),
|
||||||
|
'',
|
||||||
|
)
|
||||||
|
.trim(),
|
||||||
|
),
|
||||||
Text(
|
Text(
|
||||||
"Date: ${email['date'] ?? 'N/A'}",
|
"Date: ${email['date'] ?? 'N/A'}",
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue