Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TransactionDetailsActionSheet extends ConsumerStatefulWidget {
}

class _TransactionDetailsActionSheetState extends ConsumerState<TransactionDetailsActionSheet> {
late Timer _timer;
Timer? _timer;
late Duration _remainingTime;

Future<String> get _checksumFuture {
Expand Down Expand Up @@ -77,6 +77,10 @@ class _TransactionDetailsActionSheetState extends ConsumerState<TransactionDetai
return 'RECEIVING';
}

if (widget.transaction is PendingTransactionEvent) {
return widget.role == TransactionRole.sender ? 'SENDING' : 'RECEIVING';
}

if (widget.role == TransactionRole.sender) {
return 'SENT';
}
Expand All @@ -98,8 +102,14 @@ class _TransactionDetailsActionSheetState extends ConsumerState<TransactionDetai
return 'from';
}
if (widget.role == TransactionRole.sender) {
if (widget.transaction is PendingTransactionEvent) {
return 'sending to';
}
return 'was successfully sent to';
}
if (widget.transaction is PendingTransactionEvent) {
return 'receiving from';
}
return 'received from';
}

Expand Down Expand Up @@ -158,7 +168,7 @@ class _TransactionDetailsActionSheetState extends ConsumerState<TransactionDetai

@override
void dispose() {
_timer.cancel();
_timer?.cancel();
super.dispose();
}

Expand Down
4 changes: 2 additions & 2 deletions quantus_sdk/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ packages:
dependency: "direct main"
description:
path: dart
ref: HEAD
resolved-ref: "1a12c851561b4000350830d55b3bd96a35922b38"
ref: "v1.0.0"
resolved-ref: fa788c17e08ae463f8f3a9690e2ecdc4d0b8565f
url: "https://github.com/Quantus-Network/human-checkphrase.git"
source: git
version: "0.1.0"
Expand Down