added zwg support
This commit is contained in:
@@ -46,13 +46,13 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
final statusIcon = isSuccess
|
||||
? Icons.check_circle_rounded
|
||||
: isPending
|
||||
? Icons.pending_rounded
|
||||
: Icons.cancel_rounded;
|
||||
? Icons.pending_rounded
|
||||
: Icons.cancel_rounded;
|
||||
final statusColor = isSuccess
|
||||
? const Color(0xFF10B981)
|
||||
: isPending
|
||||
? const Color(0xFFF59E0B)
|
||||
: const Color(0xFFEF4444);
|
||||
? const Color(0xFFF59E0B)
|
||||
: const Color(0xFFEF4444);
|
||||
|
||||
return Skeletonizer(
|
||||
enabled: widget.enabled,
|
||||
@@ -66,8 +66,7 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
context.push("/receipt/${widget.transaction['id']}");
|
||||
},
|
||||
child: Container(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 12, horizontal: 14),
|
||||
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 14),
|
||||
decoration: BoxDecoration(
|
||||
color: isDark ? const Color(0xFF1A1A2E) : Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
@@ -138,11 +137,7 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Icon(
|
||||
statusIcon,
|
||||
size: 16,
|
||||
color: statusColor,
|
||||
),
|
||||
Icon(statusIcon, size: 16, color: statusColor),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
@@ -172,9 +167,7 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
(widget.transaction['amount'] as num?)
|
||||
?.toStringAsFixed(2) ??
|
||||
'',
|
||||
'${(widget.transaction['amount'] as num?)?.toStringAsFixed(2) ?? ''} ${widget.transaction['debitCurrency']}',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -182,9 +175,7 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
(widget.transaction['totalAmount'] as num?)
|
||||
?.toStringAsFixed(2) ??
|
||||
'',
|
||||
'${(widget.transaction['totalAmount'] as num?)?.toStringAsFixed(2) ?? ''} ${widget.transaction['debitCurrency']}',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -246,4 +237,4 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user