mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
Allow copy the Amount and Address
This commit is contained in:
parent
9c50712608
commit
505e407229
1 changed files with 12 additions and 3 deletions
|
@ -2,12 +2,14 @@ import 'package:cake_wallet/src/screens/transaction_details/textfield_list_item.
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/widgets/textfield_list_row.dart';
|
import 'package:cake_wallet/src/screens/transaction_details/widgets/textfield_list_row.dart';
|
||||||
import 'package:cake_wallet/src/screens/unspent_coins/widgets/unspent_coins_switch_row.dart';
|
import 'package:cake_wallet/src/screens/unspent_coins/widgets/unspent_coins_switch_row.dart';
|
||||||
import 'package:cake_wallet/src/widgets/standard_list.dart';
|
import 'package:cake_wallet/src/widgets/standard_list.dart';
|
||||||
|
import 'package:cake_wallet/utils/show_bar.dart';
|
||||||
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_details_view_model.dart';
|
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_details_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_switch_item.dart';
|
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_switch_item.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cake_wallet/src/widgets/list_row.dart';
|
import 'package:cake_wallet/src/widgets/list_row.dart';
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/standart_list_item.dart';
|
import 'package:cake_wallet/src/screens/transaction_details/standart_list_item.dart';
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
|
||||||
|
@ -30,9 +32,16 @@ class UnspentCoinsDetailsPage extends BasePage {
|
||||||
final item = unspentCoinsDetailsViewModel.items[index];
|
final item = unspentCoinsDetailsViewModel.items[index];
|
||||||
|
|
||||||
if (item is StandartListItem) {
|
if (item is StandartListItem) {
|
||||||
return ListRow(
|
|
||||||
title: '${item.title}:',
|
return GestureDetector(
|
||||||
value: item.value);
|
onTap: () {
|
||||||
|
Clipboard.setData(ClipboardData(text: item.value));
|
||||||
|
showBar<void>(context,
|
||||||
|
S.of(context).transaction_details_copied(item.title));
|
||||||
|
},
|
||||||
|
child:
|
||||||
|
ListRow(title: '${item.title}:', value: item.value),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item is TextFieldListItem) {
|
if (item is TextFieldListItem) {
|
||||||
|
|
Loading…
Reference in a new issue