fixes
This commit is contained in:
@@ -15,19 +15,23 @@ class OperationCard extends StatelessWidget {
|
||||
final OperationItem operation;
|
||||
final ValueChanged<OperationItem>? onTap;
|
||||
|
||||
const OperationCard({
|
||||
super.key,
|
||||
required this.operation,
|
||||
this.onTap,
|
||||
});
|
||||
const OperationCard({super.key, required this.operation, this.onTap});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final loc = AppLocalizations.of(context)!;
|
||||
final theme = Theme.of(context);
|
||||
final canOpen = onTap != null && paymentIdFromOperation(operation) != null;
|
||||
final amountLabel = formatAmount(operation.amount, operation.currency);
|
||||
final toAmountLabel = formatAmount(operation.toAmount, operation.toCurrency);
|
||||
final amountLabel = formatAmount(
|
||||
context,
|
||||
operation.amount,
|
||||
operation.currency,
|
||||
);
|
||||
final toAmountLabel = formatAmount(
|
||||
context,
|
||||
operation.toAmount,
|
||||
operation.toCurrency,
|
||||
);
|
||||
final showToAmount = shouldShowToAmount(operation);
|
||||
final timeLabel = formatOperationTime(context, operation.date);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user