updated the look and feel of the home page

This commit is contained in:
2026-05-28 11:47:38 +02:00
parent 6fdd3183fb
commit 88aad6ec3e
12 changed files with 1225 additions and 735 deletions

View File

@@ -47,8 +47,10 @@ class IntegrationController extends ChangeNotifier {
dynamic response = workflowResponse['body'];
String? transactionId;
if (response['status'] == 'SUCCESS') {
model.status = response['status'];
transactionId = response['id'];
transactionController.updateReceiptData(response);
await gatewayController.poll(
@@ -61,7 +63,13 @@ class IntegrationController extends ChangeNotifier {
if (!_disposed) notifyListeners();
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!_disposed && context.mounted) context.go('/receipt');
if (!_disposed && context.mounted) {
if (transactionId != null) {
context.go('/receipt/$transactionId');
} else {
context.go('/receipt');
}
}
});
return ApiResponse.success(Map<String, dynamic>.from(response));