From 14ef66990f7181b7be8a62cb60c514d6e6c06fff Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 11 Jun 2024 23:18:21 -0500 Subject: [PATCH] add basic RBF UI indicator on tx details --- .../tx_v2/transaction_v2_details_view.dart | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart b/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart index 2780b4033..0d64a5df1 100644 --- a/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart +++ b/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart @@ -1779,6 +1779,52 @@ class _TransactionV2DetailsViewState const SizedBox( height: 12, ), + if (whatIsIt( + _transaction, + currentHeight, + ) != + "Sending") + isDesktop + ? const _Divider() + : const SizedBox( + height: 12, + ), + // Show Replace By Fee UI/controls. + if (whatIsIt( + _transaction, + currentHeight, + ) != + "Sending") + RoundedWhiteContainer( + padding: isDesktop + ? const EdgeInsets.all(16) + : const EdgeInsets.all(12), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text( + "Boost transaction", + style: isDesktop + ? STextStyles + .desktopTextExtraExtraSmall( + context, + ) + : STextStyles.itemSubtitle( + context, + ), + ), + Text("TODO add RBF dialog."), + ], + ), + ], + ), + ), ], ), ),