Skip to content
Snippets Groups Projects
Commit 3abf2666 authored by poka's avatar poka
Browse files

can copy address from generated Cesium salt/password

parent ebc33e4f
No related branches found
No related tags found
No related merge requests found
Pipeline #18012 failed
...@@ -10,6 +10,7 @@ import 'package:gecko/models/wallet_data.dart'; ...@@ -10,6 +10,7 @@ import 'package:gecko/models/wallet_data.dart';
import 'package:gecko/providers/my_wallets.dart'; import 'package:gecko/providers/my_wallets.dart';
import 'package:gecko/providers/substrate_sdk.dart'; import 'package:gecko/providers/substrate_sdk.dart';
import 'package:gecko/providers/wallet_options.dart'; import 'package:gecko/providers/wallet_options.dart';
import 'package:gecko/providers/wallets_profiles.dart';
import 'package:gecko/screens/myWallets/unlocking_wallet.dart'; import 'package:gecko/screens/myWallets/unlocking_wallet.dart';
import 'package:gecko/screens/transaction_in_progress.dart'; import 'package:gecko/screens/transaction_in_progress.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
...@@ -171,14 +172,29 @@ class ImportG1v1 extends StatelessWidget { ...@@ -171,14 +172,29 @@ class ImportG1v1 extends StatelessWidget {
), ),
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
Text( GestureDetector(
getShortPubkey(sub.g1V1NewAddress), key: const Key('copyPubkey'),
style: const TextStyle( onTap: () {
fontSize: 18, Clipboard.setData(
color: Colors.black, ClipboardData(text: sub.g1V1NewAddress));
fontWeight: FontWeight.bold, snackCopyKey(context);
fontFamily: 'Monospace'), },
child: Text(
getShortPubkey(sub.g1V1NewAddress),
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
),
),
), ),
// Text(
// getShortPubkey(sub.g1V1NewAddress),
// style: const TextStyle(
// fontSize: 18,
// color: Colors.black,
// fontWeight: FontWeight.bold,
// fontFamily: 'Monospace'),
// ),
const SizedBox(height: 20), const SizedBox(height: 20),
Text( Text(
'${balance['transferableBalance']} $currencyName', '${balance['transferableBalance']} $currencyName',
......
...@@ -5,7 +5,7 @@ description: Pay with G1. ...@@ -5,7 +5,7 @@ description: Pay with G1.
# pub.dev using `pub publish`. This is preferred for private packages. # pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.0.10+26 version: 0.0.10+27
environment: environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment