Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
b7817a32
Commit
b7817a32
authored
2 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
improve paste mnemonic button; set numberScan to 20
parent
263b99fb
No related branches found
No related tags found
No related merge requests found
Pipeline
#15966
failed
2 years ago
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/providers/generate_wallets.dart
+1
-1
1 addition, 1 deletion
lib/providers/generate_wallets.dart
lib/screens/myWallets/restore_chest.dart
+29
-19
29 additions, 19 deletions
lib/screens/myWallets/restore_chest.dart
lib/screens/onBoarding/10.dart
+1
-1
1 addition, 1 deletion
lib/screens/onBoarding/10.dart
with
31 additions
and
21 deletions
lib/providers/generate_wallets.dart
+
1
−
1
View file @
b7817a32
...
...
@@ -366,7 +366,7 @@ class GenerateWalletsProvider with ChangeNotifier {
}
Future
<
bool
>
scanDerivations
(
BuildContext
context
,
{
int
numberScan
=
1
0
})
async
{
{
int
numberScan
=
2
0
})
async
{
SubstrateSdk
_sub
=
Provider
.
of
<
SubstrateSdk
>(
context
,
listen:
false
);
final
ss58
=
_sub
.
ss58
;
final
currentChestNumber
=
configBox
.
get
(
'currentChest'
);
...
...
This diff is collapsed.
Click to expand it.
lib/screens/myWallets/restore_chest.dart
+
29
−
19
View file @
b7817a32
...
...
@@ -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:
1
5
0
,
height:
5
0
,
width:
1
9
0
,
height:
6
0
,
child:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
elevation:
4
,
primary:
yellowC
,
// background
onPrimary:
Colors
.
black
,
// foreground
),
onPressed:
()
{
genW
.
pasteMnemonic
(
context
);
},
child:
const
Text
(
'Coller depuis le
\n
presse-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
\n
presse-papier'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontSize:
17
,
fontWeight:
FontWeight
.
w400
),
),
],
)),
)
])
]),
...
...
This diff is collapsed.
Click to expand it.
lib/screens/onBoarding/10.dart
+
1
−
1
View file @
b7817a32
...
...
@@ -173,7 +173,7 @@ class OnboardingStepTen extends StatelessWidget {
bool
isAlive
=
false
;
if
(
scanDerivation
)
{
isAlive
=
await
_generateWalletProvider
.
scanDerivations
(
context
,
numberScan:
3
0
);
.
scanDerivations
(
context
,
numberScan:
2
0
);
}
if
(
!
isAlive
)
{
final
address
=
await
_sub
.
importAccount
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment