add WIP boost transaction dialog

This commit is contained in:
sneurlax 2024-06-12 13:16:49 -05:00 committed by julian
parent 9bbad7c4c3
commit cac7b8a83d
2 changed files with 2085 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -58,6 +58,7 @@ import '../../sub_widgets/tx_icon.dart';
import '../../wallet_view.dart'; import '../../wallet_view.dart';
import '../dialogs/cancelling_transaction_progress_dialog.dart'; import '../dialogs/cancelling_transaction_progress_dialog.dart';
import '../edit_note_view.dart'; import '../edit_note_view.dart';
import 'boost_transaction_view.dart';
class TransactionV2DetailsView extends ConsumerStatefulWidget { class TransactionV2DetailsView extends ConsumerStatefulWidget {
const TransactionV2DetailsView({ const TransactionV2DetailsView({
@ -1347,7 +1348,41 @@ class _TransactionV2DetailsViewState
CustomTextButton( CustomTextButton(
text: "Boost transaction", text: "Boost transaction",
onTap: () async { onTap: () async {
// TODO [prio=high]: Show RBF UI. if (Util.isDesktop) {
await showDialog<void>(
context: context,
builder: (context) =>
DesktopDialog(
maxHeight:
MediaQuery.of(
context)
.size
.height -
64,
maxWidth: 580,
child:
BoostTransactionView(
transaction:
_transaction,
coin: coin,
walletId: walletId,
),
),
);
} else {
unawaited(
Navigator.of(context)
.pushNamed(
BoostTransactionView
.routeName,
arguments: (
tx: _transaction,
coin: coin,
walletId: walletId,
),
),
);
}
}, },
), ),
], ],