mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
add WIP boost transaction dialog
This commit is contained in:
parent
0407a09083
commit
6fa1bc75af
2 changed files with 2085 additions and 1 deletions
File diff suppressed because it is too large
Load diff
|
@ -58,6 +58,7 @@ import '../../sub_widgets/tx_icon.dart';
|
|||
import '../../wallet_view.dart';
|
||||
import '../dialogs/cancelling_transaction_progress_dialog.dart';
|
||||
import '../edit_note_view.dart';
|
||||
import 'boost_transaction_view.dart';
|
||||
|
||||
class TransactionV2DetailsView extends ConsumerStatefulWidget {
|
||||
const TransactionV2DetailsView({
|
||||
|
@ -1347,7 +1348,41 @@ class _TransactionV2DetailsViewState
|
|||
CustomTextButton(
|
||||
text: "Boost transaction",
|
||||
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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue