make coin control string amount values selectable

This commit is contained in:
julian 2024-06-19 13:54:34 -06:00
parent 9285027006
commit a22a97aee1
2 changed files with 4 additions and 4 deletions

View file

@ -694,7 +694,7 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
selectedSumInt.toAmountAsRaw(
fractionDigits: coin.fractionDigits,
);
return Text(
return SelectableText(
ref
.watch(pAmountFormatter(coin))
.format(selectedSum),
@ -739,7 +739,7 @@ class _CoinControlViewState extends ConsumerState<CoinControlView> {
"Amount to send",
style: STextStyles.w600_14(context),
),
Text(
SelectableText(
ref
.watch(pAmountFormatter(coin))
.format(widget.requestedTotal!),

View file

@ -488,7 +488,7 @@ class _DesktopCoinControlUseDialogState
.textDark,
),
),
Text(
SelectableText(
"${widget.amountToSend!.decimal.toStringAsFixed(
coin.fractionDigits,
)}"
@ -523,7 +523,7 @@ class _DesktopCoinControlUseDialogState
.textDark,
),
),
Text(
SelectableText(
"${selectedSum.decimal.toStringAsFixed(
coin.fractionDigits,
)} ${coin.ticker}",