mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
add copy button to txid field in tx details on mobile
This commit is contained in:
parent
537e44f1f8
commit
d8ec93fb30
1 changed files with 22 additions and 10 deletions
|
@ -48,6 +48,7 @@ import '../../../../widgets/background.dart';
|
|||
import '../../../../widgets/conditional_parent.dart';
|
||||
import '../../../../widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import '../../../../widgets/custom_buttons/blue_text_button.dart';
|
||||
import '../../../../widgets/custom_buttons/simple_copy_button.dart';
|
||||
import '../../../../widgets/desktop/desktop_dialog.dart';
|
||||
import '../../../../widgets/desktop/desktop_dialog_close_button.dart';
|
||||
import '../../../../widgets/desktop/primary_button.dart';
|
||||
|
@ -1722,7 +1723,17 @@ class _TransactionV2DetailsViewState
|
|||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
ConditionalParent(
|
||||
condition: !isDesktop,
|
||||
builder: (child) => Row(
|
||||
children: [
|
||||
Expanded(child: child),
|
||||
SimpleCopyButton(
|
||||
data: _transaction.txid,
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Text(
|
||||
"Transaction ID",
|
||||
style: isDesktop
|
||||
? STextStyles
|
||||
|
@ -1733,6 +1744,7 @@ class _TransactionV2DetailsViewState
|
|||
context,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue