mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
fix debug address details view on desktop
This commit is contained in:
parent
40dfced949
commit
ee128810b5
1 changed files with 31 additions and 10 deletions
|
@ -619,16 +619,37 @@ class _TransactionDetailsViewState
|
||||||
CustomTextButton(
|
CustomTextButton(
|
||||||
text: "Info",
|
text: "Info",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.of(context)
|
if (isDesktop) {
|
||||||
.pushNamed(
|
showDialog<void>(
|
||||||
AddressDetailsView
|
context: context,
|
||||||
.routeName,
|
builder: (_) =>
|
||||||
arguments: Tuple2(
|
DesktopDialog(
|
||||||
_transaction.address
|
maxHeight:
|
||||||
.value!.id,
|
double.infinity,
|
||||||
widget.walletId,
|
child:
|
||||||
),
|
AddressDetailsView(
|
||||||
);
|
addressId:
|
||||||
|
_transaction
|
||||||
|
.address
|
||||||
|
.value!
|
||||||
|
.id,
|
||||||
|
walletId: widget
|
||||||
|
.walletId,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
Navigator.of(context)
|
||||||
|
.pushNamed(
|
||||||
|
AddressDetailsView
|
||||||
|
.routeName,
|
||||||
|
arguments: Tuple2(
|
||||||
|
_transaction.address
|
||||||
|
.value!.id,
|
||||||
|
widget.walletId,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue