mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
add WIP boost transaction dialog
This commit is contained in:
parent
9bbad7c4c3
commit
cac7b8a83d
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 '../../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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue