add copy button to txid field in tx details on mobile

This commit is contained in:
julian 2024-11-22 15:15:09 -06:00
parent 537e44f1f8
commit d8ec93fb30

View file

@ -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,
),