solyanka iz fix for payout page design, ledger wallet now clickable
This commit is contained in:
@@ -13,7 +13,6 @@ import 'package:pweb/generated/i18n/app_localizations.dart';
|
||||
class PaymentDetailsContent extends StatelessWidget {
|
||||
final Payment payment;
|
||||
final VoidCallback onBack;
|
||||
final VoidCallback? onDownloadAct;
|
||||
final bool Function(PaymentExecutionOperation operation)?
|
||||
canDownloadOperationDocument;
|
||||
final ValueChanged<PaymentExecutionOperation>? onDownloadOperationDocument;
|
||||
@@ -22,7 +21,6 @@ class PaymentDetailsContent extends StatelessWidget {
|
||||
super.key,
|
||||
required this.payment,
|
||||
required this.onBack,
|
||||
this.onDownloadAct,
|
||||
this.canDownloadOperationDocument,
|
||||
this.onDownloadOperationDocument,
|
||||
});
|
||||
@@ -37,7 +35,7 @@ class PaymentDetailsContent extends StatelessWidget {
|
||||
children: [
|
||||
PaymentDetailsHeader(title: loc.paymentInfo, onBack: onBack),
|
||||
const SizedBox(height: 16),
|
||||
PaymentSummaryCard(payment: payment, onDownloadAct: onDownloadAct),
|
||||
PaymentSummaryCard(payment: payment),
|
||||
const SizedBox(height: 16),
|
||||
PaymentDetailsSections(
|
||||
payment: payment,
|
||||
|
||||
@@ -64,17 +64,6 @@ class _PaymentDetailsView extends StatelessWidget {
|
||||
return PaymentDetailsContent(
|
||||
payment: payment,
|
||||
onBack: () => _handleBack(context),
|
||||
onDownloadAct: controller.canDownload
|
||||
? () {
|
||||
final request = controller.primaryOperationDocumentRequest;
|
||||
if (request == null) return;
|
||||
downloadPaymentAct(
|
||||
context,
|
||||
gatewayService: request.gatewayService,
|
||||
operationRef: request.operationRef,
|
||||
);
|
||||
}
|
||||
: null,
|
||||
canDownloadOperationDocument:
|
||||
controller.canDownloadOperationDocument,
|
||||
onDownloadOperationDocument: (operation) {
|
||||
|
||||
@@ -44,12 +44,12 @@ class PaymentOperationsSection extends StatelessWidget {
|
||||
);
|
||||
if (i < operations.length - 1) {
|
||||
children.addAll([
|
||||
const SizedBox(height: 8),
|
||||
const SizedBox(height: 10),
|
||||
Divider(
|
||||
height: 1,
|
||||
color: Theme.of(context).dividerColor.withAlpha(20),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const SizedBox(height: 10),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,15 +14,11 @@ import 'package:pweb/utils/clipboard.dart';
|
||||
|
||||
import 'package:pweb/generated/i18n/app_localizations.dart';
|
||||
|
||||
|
||||
class PaymentSummaryCard extends StatelessWidget {
|
||||
final Payment payment;
|
||||
final VoidCallback? onDownloadAct;
|
||||
|
||||
const PaymentSummaryCard({
|
||||
super.key,
|
||||
required this.payment,
|
||||
this.onDownloadAct,
|
||||
});
|
||||
const PaymentSummaryCard({super.key, required this.payment});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -93,14 +89,6 @@ class PaymentSummaryCard extends StatelessWidget {
|
||||
text: feeText,
|
||||
muted: true,
|
||||
),
|
||||
if (onDownloadAct != null) ...[
|
||||
const SizedBox(height: 12),
|
||||
OutlinedButton.icon(
|
||||
onPressed: onDownloadAct,
|
||||
icon: const Icon(Icons.download),
|
||||
label: Text(loc.downloadAct),
|
||||
),
|
||||
],
|
||||
if (showPaymentId) ...[
|
||||
const SizedBox(height: 16),
|
||||
Divider(color: theme.dividerColor.withAlpha(35), height: 1),
|
||||
|
||||
Reference in New Issue
Block a user