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/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,