mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-18 16:44:32 +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/conditional_parent.dart';
|
||||||
import '../../../../widgets/custom_buttons/app_bar_icon_button.dart';
|
import '../../../../widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import '../../../../widgets/custom_buttons/blue_text_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.dart';
|
||||||
import '../../../../widgets/desktop/desktop_dialog_close_button.dart';
|
import '../../../../widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
import '../../../../widgets/desktop/primary_button.dart';
|
import '../../../../widgets/desktop/primary_button.dart';
|
||||||
|
@ -1722,16 +1723,27 @@ class _TransactionV2DetailsViewState
|
||||||
crossAxisAlignment:
|
crossAxisAlignment:
|
||||||
CrossAxisAlignment.start,
|
CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
ConditionalParent(
|
||||||
"Transaction ID",
|
condition: !isDesktop,
|
||||||
style: isDesktop
|
builder: (child) => Row(
|
||||||
? STextStyles
|
children: [
|
||||||
.desktopTextExtraExtraSmall(
|
Expanded(child: child),
|
||||||
context,
|
SimpleCopyButton(
|
||||||
)
|
data: _transaction.txid,
|
||||||
: STextStyles.itemSubtitle(
|
),
|
||||||
context,
|
],
|
||||||
),
|
),
|
||||||
|
child: Text(
|
||||||
|
"Transaction ID",
|
||||||
|
style: isDesktop
|
||||||
|
? STextStyles
|
||||||
|
.desktopTextExtraExtraSmall(
|
||||||
|
context,
|
||||||
|
)
|
||||||
|
: STextStyles.itemSubtitle(
|
||||||
|
context,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
|
|
Loading…
Reference in a new issue