diff --git a/lib/providers/generate_wallets.dart b/lib/providers/generate_wallets.dart index ede8a80..5b9c5f7 100644 --- a/lib/providers/generate_wallets.dart +++ b/lib/providers/generate_wallets.dart @@ -366,7 +366,7 @@ class GenerateWalletsProvider with ChangeNotifier { } Future scanDerivations(BuildContext context, - {int numberScan = 10}) async { + {int numberScan = 20}) async { SubstrateSdk _sub = Provider.of(context, listen: false); final ss58 = _sub.ss58; final currentChestNumber = configBox.get('currentChest'); diff --git a/lib/screens/myWallets/restore_chest.dart b/lib/screens/myWallets/restore_chest.dart index 60a49e8..2dc935d 100644 --- a/lib/screens/myWallets/restore_chest.dart +++ b/lib/screens/myWallets/restore_chest.dart @@ -102,8 +102,10 @@ class RestoreChest extends StatelessWidget { context, FaderTransition( page: skipIntro - ? const OnboardingStepNine(scanDerivation: true) - : const OnboardingStepSeven(scanDerivation: true), + ? const OnboardingStepNine( + scanDerivation: true) + : const OnboardingStepSeven( + scanDerivation: true), isFast: true), ); } else { @@ -123,24 +125,32 @@ class RestoreChest extends StatelessWidget { Column(children: [ const SizedBox(height: 20), SizedBox( - width: 150, - height: 50, + width: 190, + height: 60, child: ElevatedButton( - style: ElevatedButton.styleFrom( - elevation: 4, - primary: yellowC, // background - onPrimary: Colors.black, // foreground - ), - onPressed: () { - genW.pasteMnemonic(context); - }, - child: const Text( - 'Coller depuis le\npresse-papier', - textAlign: TextAlign.center, - style: - TextStyle(fontSize: 16, fontWeight: FontWeight.w400), - ), - ), + style: ElevatedButton.styleFrom( + elevation: 4, + primary: yellowC, // background + onPrimary: Colors.black, // foreground + ), + onPressed: () { + genW.pasteMnemonic(context); + }, + child: Row( + children: const [ + Icon( + Icons.content_paste_go, + size: 25, + ), + SizedBox(width: 10), + Text( + 'Coller depuis le\npresse-papier', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 17, fontWeight: FontWeight.w400), + ), + ], + )), ) ]) ]), diff --git a/lib/screens/onBoarding/10.dart b/lib/screens/onBoarding/10.dart index f73f45a..d2e756d 100644 --- a/lib/screens/onBoarding/10.dart +++ b/lib/screens/onBoarding/10.dart @@ -173,7 +173,7 @@ class OnboardingStepTen extends StatelessWidget { bool isAlive = false; if (scanDerivation) { isAlive = await _generateWalletProvider - .scanDerivations(context, numberScan: 30); + .scanDerivations(context, numberScan: 20); } if (!isAlive) { final address = await _sub.importAccount(